feat: m4 teil 1 — beute, inventar und affixe
- data/: [[loot_tables]] und [[affixes]] als Registries; LootEntry mit guaranteed, nothing, table-in-table, count und affixes - game/loot.rs: EINE Ziehmaschinerie fuer Gegenstaende und Affixe, Tiefendeckel gegen wechselseitigen Bezug - PickUp zieht erst beim Aufheben (Ticket 16) — moeglich nur, weil alle Haufen dasselbe Symbol zeigen - UseItem/Equip/Unequip/Drop, Inventar-Screen als Registry-Schleife - Affixe im Attributpfad, in der Resistenz und in der Trigger-Suche; item_label stellt Affixnamen voran, item_price multipliziert Faktoren - Room haelt eine loot_table (nicht je Haufen eine), Prefab-loot ueberschreibt die Etagentabelle 53 Tests. Offen aus M4: Handel.
This commit is contained in:
@@ -53,3 +53,13 @@ triggers = [
|
||||
when = { damage_type = "fire" },
|
||||
actions = [ { action = "damage", amount = 3, damage_type = "fire", target = "target" } ] },
|
||||
]
|
||||
|
||||
[[items]]
|
||||
id = "bone_blade"
|
||||
name = "Knochenklinge"
|
||||
base_price = 210
|
||||
slot = "core:hand"
|
||||
symbol = "/"
|
||||
color = "magenta"
|
||||
modifiers = [ { attribute = "damage", flat = 11 },
|
||||
{ attribute = "critical_chance", flat = 8 } ]
|
||||
|
||||
Reference in New Issue
Block a user