class_name TemporaryPlaytestKit extends RefCounted ## TEMPORARY PLAYTEST FIXTURE ## ## Remove this file and its single call in Game once normal early-game loot and ## encounter balance can exercise melee, ranged, and offensive magic naturally. ## It deliberately does not modify procedural generation or authored loot tables. const CHESTS := { Vector2i(3, 6): { "label": "MÊLÉE", "items": [{"item_id": &"weapon_rusty_sword", "quantity": 1}], "ammunition": 0, }, Vector2i(5, 6): { "label": "DISTANCE", "items": [{"item_id": &"weapon_hand_crossbow", "quantity": 1}], "ammunition": 20, }, Vector2i(6, 6): { "label": "MAGIE OFFENSIVE", "items": [{"item_id": &"misc_grimoire_ombre", "quantity": 1}], "ammunition": 0, }, } static func apply_to_new_run(floor: FloorState) -> void: if floor == null or floor.floor_number != 0: return floor.metadata["temporary_playtest_chests"] = true for cell: Vector2i in CHESTS: var reward: Dictionary = CHESTS[cell] floor.chests[cell] = { "loot_table_id": &"", "opened": false, "temporary_playtest": true, "label": reward.label, "reward": { "items": reward.items.duplicate(true), "gold": 0, "empty": false, "trap": &"", "ammunition": int(reward.ammunition), }, } floor.map.set_cell(cell, GridMapState.CellKind.CHEST)