Trading mod: shops as data and the trade window

This commit is contained in:
cthangover committed 2026-10-23 09:30:05 +03:00
commit 89ee23f1e6
19 files changed
+1595

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
{
"id": "trading",
"name": "Trading",
"version": "1.0.0",
"author": "ct",
"description": "Shops: merchants defined as data (\"Kind\": \"shop\": what they sell, what they buy back and at which price) and a trade window of two inventories side by side, the merchant's goods and the player's bag, with a deal card between them. Money is an ordinary inventory item, the gold coin money/coin by default. Scenario action: trade.open shop=<id>.",
"category": "gameplay",
"sources": [
"src/**/*.cs"
],
"test_sources": [
"tests/*.cs"
],
"depends": ["ui_base>=1", "items_base>=1"],
"test_suites": [
{"id": "trade", "activate": ["--itest=trade"]}
],
"ui": [
{
"id": "trade",
"kind": "overlay",
"slot": "ModLastPanel",
"scene_path": "scenes/trade_panel.tscn",
"once": true,
"show_on_start": false,
"priority": 10
}
]
}