* Gets either the remaining uses of the mapblock OR THE FREQUENCY! * Remaining limits the number of times a mapblock occurs. * Frequency increases the odds of a mapblock occuring. * @return int */
| 123 | * @return int |
| 124 | */ |
| 125 | int MapBlock::getRemainingUses() |
| 126 | { |
| 127 | if (_maxCount == -1) |
| 128 | { |
| 129 | return _frequency; |
| 130 | } |
| 131 | return _maxCount - _timesUsed; |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * Decreases the remaining uses of a mapblock for this session. |