Trading: shop kind and trade.open schema; trade test passes the RPG Plus prologue
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3199679355
commit
b5878df34a
10 files changed
+187
-2
No files matched your search
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"Actions": [
|
||||
{
|
||||
"Id": "trade.open",
|
||||
"Name": "trading/schema/builtin/trade_open",
|
||||
"Description": "trading/schema/builtin/trade_open_desc",
|
||||
"Category": "items",
|
||||
"Params": [
|
||||
{
|
||||
"Key": "shop",
|
||||
"Type": "ref",
|
||||
"Kind": "shop",
|
||||
"Required": true,
|
||||
"Name": "trading/schema/field/shop"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Kinds": [
|
||||
{
|
||||
"Kind": "shop",
|
||||
"Name": "trading/schema/kind/shop",
|
||||
"Description": "trading/schema/kind/shop_desc",
|
||||
"Folder": "shops",
|
||||
"NewId": "{mod}/new_shop",
|
||||
"Order": 13,
|
||||
"Fields": [
|
||||
{
|
||||
"Key": "Name",
|
||||
"Type": "locale",
|
||||
"KeyPattern": "{mod}/shop/{id}",
|
||||
"Name": "trading/schema/field/name"
|
||||
},
|
||||
{
|
||||
"Key": "Currency",
|
||||
"Type": "ref",
|
||||
"Kind": "item",
|
||||
"Name": "trading/schema/field/currency"
|
||||
},
|
||||
{
|
||||
"Key": "Sells",
|
||||
"Type": "list",
|
||||
"Name": "trading/schema/field/sells",
|
||||
"Of": [
|
||||
{
|
||||
"Key": "Item",
|
||||
"Type": "ref",
|
||||
"Kind": "item",
|
||||
"Required": true,
|
||||
"Name": "trading/schema/field/item"
|
||||
},
|
||||
{
|
||||
"Key": "Price",
|
||||
"Type": "int",
|
||||
"Required": true,
|
||||
"Name": "trading/schema/field/price"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"Key": "Buys",
|
||||
"Type": "list",
|
||||
"Name": "trading/schema/field/buys",
|
||||
"Of": [
|
||||
{
|
||||
"Key": "Item",
|
||||
"Type": "ref",
|
||||
"Kind": "item",
|
||||
"Required": true,
|
||||
"Name": "trading/schema/field/item"
|
||||
},
|
||||
{
|
||||
"Key": "Price",
|
||||
"Type": "int",
|
||||
"Required": true,
|
||||
"Name": "trading/schema/field/price"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in new issue
Block a user