From a4c1f6988a06ac971a50ccda06b75fbc232d5eb1 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 7 Aug 2020 19:18:39 +0200 Subject: [PATCH] Items and looting sections. --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 99e5207..5ebcfbd 100644 --- a/README.md +++ b/README.md @@ -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`.