Name | Type | Description |
---|---|---|
json |
Object | optional Json object describing the loot |
Properties:
Name | Type | Description |
---|---|---|
kind |
LootKind | The kind of loot |
lootID |
SystemValue | The loot ID value |
number |
SystemValue | The number value |
probability |
SystemValue | The probability value |
initial |
SystemValue | The initial value |
final |
SystemValue | The final value |
Methods
-
Read the JSON associated to the loot
Name Type Description json
Object Json object describing the loot -
Check if a loot is available at a particular level
Name Type Description level
number The level Returns:
Type Description boolean -
currenLoot (level)GameItem
-
Get the current loot at a particular level
Name Type Description level
number The level Returns:
Type Description GameItem