Changes for page Looting System

Last modified by Alexandros Mloukie on 2026/01/26 19:12

From version 15.2
edited by Alexandros Mloukie
on 2026/01/26 16:23
Change comment: There is no comment for this version
To version 12.1
edited by Alexandros Mloukie
on 2026/01/21 05:20
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -11,7 +11,7 @@
11 11  
12 12  Every enemy in the game needs to have access to their very own inventory. This can probably use the {{info}}MAWInventoryComponent{{/info}} already used for the player, though there are gonna be some extra things to it so a new component might be needed. The inventory will be populated with items on __enemy spawn__ instead of on-death. The items that will occupy the inventory will be defined through a {{success}}Data Table{{/success}}, so designers can easily tweak values later on.
13 13  
14 -== 1.1 - Enemy Loot Data Table{{id name="lootingStruct"/}} ==
14 +== 1.1 - Enemy Loot Data Table ==
15 15  
16 16  The loot entries struct that will fill the {{success}}Loot Data Table{{/success}} will be in the following form:
17 17  
... ... @@ -39,15 +39,4 @@
39 39  |One-Way (e.g. Enemy Corpse)|The player can only move items from the enemy's inventory to their own and **not** the other way around.
40 40  |Two-Way (e.g. Chest)|The player can move items between **both** inventories, allowing them to off-load items if they wish to in this container.
41 41  
42 -Attempting to move an item from one inventory to another, is successful only if that item has enough space in the area of the inventory it has been dropped off.
43 -
44 -== 2.3 - Interaction Cancellation ==
45 -
46 -The looting interaction can be cancelled due to a variety of circumstances:
47 -
48 -* Player death while interacting
49 -* The corpse or player moving out of interaction range
50 -* Pressing the button to end the interaction while an item is being dragged by the mouse but not yet dropped somewhere
51 -* and other such edge cases.
52 -
53 -Should the looting get cancelled for **any** reason, then __any item(s) currently being held by the mouse are automatically moved back to their previous positions__. In essence, an item is moved from one inventory to another **only** when the drag & drop process has been successfully completed.
42 +