Wiki source code of Item Acquisition

Version 6.2 by Alexandros Mloukie on 2025/12/11 15:53

Show last authors
1 {{toc/}}
2
3 ----
4
5 = 0 - Introduction =
6
7 This document defines the sources of items within the game, as well as their respective methods of acquisition. It outlines:
8
9 * The sources through which items are acquired
10 * The acquisition mechanic involved
11 * Details about the technical implementation of systems necessary for the correct function of the gameplay as a whole
12
13 == 0.1 - Disclaimer ==
14
15 This is a living document, and any specifics pertaining to the mechanics, numbers, and more, are subject to change. The assignee of this task is free to apply any values, effects, and other unspecified elements, or contact Adam Janus or {{mention reference="XWiki.AlexandrosMloukie"/}} to get further guidelines.
16
17 == 0.2 - Terminology ==
18
19 (% class="table-bordered" %)
20 (% class="active" %)|=(% style="width: 190px;" %)Term|=(% style="width: 1247px;" %)Meaning
21 |(% style="width:190px" %)PC|(% style="width:1247px" %)Player Character
22
23 ----
24
25 = 1 - Sources of Items =
26
27 There are multiple sources of items in-game, though they can be broadly split into 3 distinct categories:
28
29 (% class="table-bordered" %)
30 (% class="active" %)|=(% style="width: 159px;" %)Category|=(% style="width: 1003px;" %)Definition
31 |(% style="width:159px" %)Entities|(% style="width:1003px" %)This includes collecting items via Looting enemy corpses, as well as collecting resources from neutral/friendly creatures
32 |(% style="width:159px" %)Environment|(% style="width:1003px" %)This includes Mining, and Foraging resources from inanimate sources
33 |(% style="width:159px" %)Exploration|(% style="width:1003px" %)This includes item pickups, as well as chests found by exploring the world, or completing quests
34
35 {{info}}
36 Note: These are for items acquired from the environment, and do not include crafting or other processing methods
37 {{/info}}
38
39 == 1.1 - Acquisition Mechanics ==
40
41 === 1.1.1 - Looting ===
42
43 Looting involves the player obtaining items through an interaction with an actor that can provide a UI. Looting relies on 2 things:
44
45 (% class="table-bordered" %)
46 (% class="active" %)|=Element|=Description
47 |Loot Data Table Entry|An entry in the Loot Data Table, that will define the items, quantities, and weights
48 |Loot Component|A custom component that defines the type and entry used for the loot, as well as allowing the player to interact with the target for Looting
49
50 Once these elements have been set up, the process of Looting a target follows these steps:
51
52 1. (% class="mark" %)**Calculation**(%%)
53 The game calculates the loot based on the target's loot table and the PC's Looting level. These items are added to the Loot Inventory.
54 1. (% class="mark" %)**Display**(%%)
55 The Loot UI and the PC's Inventory UI are both displayed.
56 1. (% class="mark" %)**Transfer**(%%)
57 The player moves items from the Loot Inventory to the PC's Inventory. The opposite can also be done.
58 1. (% class="mark" %)**Completion**(%%)
59 When the player is done, the UI can be closed. If there are still items left within the Loot Inventory, then the actor can persist. Otherwise, depending on type, it can be made to instantly de-spawn.
60
61 === 1.1.2 - Foraging ===