Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
ITEM: DruGa
Updated a day agoItem
Take the mystery drug for a chance to change one of your character's stat (positively or negatively) or explode or sell it to the company for money :3
Scrap Info:
- Item typically weights about 5.04 lb
- Item can value anywhere between $40 and $50
- Spawn weight is equal to LotTa
- Stats modified by the item WILL NOT be persistent (tl;dr extra work and non-functional in LAN mode)
- Item cannot be used while in ship (damage immunity), but unlike LotTa, you can actually leave the moon with the item and use the item when you're landed again!
Default Probability Table (when used):
- 30% of explosion
- 70% for any of the following event to happen with equal chance: Speed, Health, and Jump Power. Within those chance, the type of multiplier happens with the following probability:
- 50% - 0.5x (lose half of the stat)
- 25% - 0.75x (lose quarter of the stat)
- 15% - 1x (nothing happens)
- 5% - 1.5x (gain extra half of the stat)
- 3.5% - 2x (gain double of the stat)
- 1.5% - 3x (gain 3 times of the stat)
Host Note
Default Config:
[druga.host]
ExplodeChance = 30
x0_5MultiChance = 50
x0_75MultiChance = 25
x1MultiChance = 15
x1_5MultiChance = 5
x2MultiChance = 3.5
x3MultiChance = 1.5
This is the default host configuration for the item. It is important to note that the highest value ExplodeChance supports is 100 (with 2 decimal point support) while other multiplier rate works the same way as Lotta. If host wish to prevent any player stat changes, simply set all the multiplier weight value in the config (except 1x) to zero.
The item goes through three independent rolls:
- Explosion or not - this value is actually the percentage you can configure to determine the probability for the item to explode on consumption.
- If not explosion, another roll to determine the type of stat to change - Reason behind this is that I want completely equal chance for the three player stat to be chosen. Doing math during the first step can cause uneven division; thus, produce biases. Host, unfortunately, cannot configure the stat for this step.
- The multiplier, once the type of stats are determined, another roll will occur, which determines the value of the multiplier determined by the configurable weights.