Items and looting sections.

This commit is contained in:
Relintai 2020-08-07 19:18:39 +02:00
parent eeb1d2ab60
commit a4c1f6988a

View File

@ -468,8 +468,21 @@ by modifying their damage values in aura callbacks.
## Items
Items are implemented using 2 classes, `ItemTemplate`, and `ItemInstance`.
`ItemTemplate` contains all information for a potential item. You can generate `Iteminstance`s with this,
using it's `ItemInstance create_item_instance()` method. You can also implement your custom item creation logic
using the `void _create_item_instance()` virtual.
`ItemInstance` is the actual item.
### Loot
Looting can be implemented using `Entity`'s target bag functionality.
You can see an example implementation [here](https://github.com/Relintai/broken_seals/blob/master/game/scripts/entities/EntityDataGD.gd). \
And an example ui implementation [here](https://github.com/Relintai/broken_seals/tree/master/game/ui/loot_window).
## XP
You can set all the xp values for your levels in `ProjectSettings->Ess->xp`.