mirror of
https://github.com/Relintai/entity_spell_system.git
synced 2025-05-11 22:42:10 +02:00
Items and looting sections.
This commit is contained in:
parent
eeb1d2ab60
commit
a4c1f6988a
13
README.md
13
README.md
@ -468,8 +468,21 @@ by modifying their damage values in aura callbacks.
|
|||||||
|
|
||||||
## Items
|
## 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
|
### 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
|
## XP
|
||||||
|
|
||||||
You can set all the xp values for your levels in `ProjectSettings->Ess->xp`.
|
You can set all the xp values for your levels in `ProjectSettings->Ess->xp`.
|
||||||
|
Loading…
Reference in New Issue
Block a user