| 5224 | } |
| 5225 | |
| 5226 | Sint32 Item::potionGetEffectDurationRandom(Entity* my, Stat* myStats) const |
| 5227 | { |
| 5228 | Sint32 range = std::max(1, potionGetEffectDurationMaximum(my, myStats) - potionGetEffectDurationMinimum(my, myStats)); |
| 5229 | return potionGetEffectDurationMinimum(my, myStats) + (local_rng.rand() % (range)); |
| 5230 | } |
| 5231 | |
| 5232 | Sint32 Item::potionGetCursedEffectDurationMinimum(Entity* my, Stat* myStats) const |
| 5233 | { |
no test coverage detected