mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-29 14:15:46 +01:00
d30bd96a2a
This commit introduces the strange concept of a singleton ThingPicker that only ever picks `null`. The purpose of this picker is to allow for a type of "loot table" experience similar to that found in other games. An example would be a piece of equipment that only has a 50 % chance of dropping. With the current state of MobArena, it would be necessary to something conjure up a CommandThing or something to emulate nothingness, but now there is native support for it with the `nothing` keyword. The nullability of rewards also has the side effect that we got to clean up the MASpawnThread `addReward` method a bit. Closes #638 |
||
---|---|---|
.. | ||
main | ||
test |