This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Takes a discourse topic url and prints all posts that contain external links. Useful for identifying spam posts that hide links in subtle places, such as within commas or periods. | |
.DESCRIPTION | |
The Check-Discourse-Topic-Links script takes a URL and uses the Invoke-RestMethod to check each post for the presence of a link_counts field. If the field exists, the script checks whether its internal property is set to false. If so, it prints the post number, the username of the post's author, the external link and the link text. | |
.PARAMETER discourseTopic | |
The discourse topic url to check. Note: the url must begin with http:// or https:// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LootProbabilities : MonoBehaviour | |
{ | |
private const int MAX_LEVEL = 20; | |
private const float MAX_RARITY = 10; | |
[SerializeField] private ParticleSystem.MinMaxCurve lootRarityPerLevel; | |
[SerializeField] private AnimationCurve probabilitiesDistribution; | |
[ReadOnly, SerializeField] private LevelProbabilities[] probabilitiesPerLevel; | |