From de25a5f19cf574a528f4622fc153c15b624b37e2 Mon Sep 17 00:00:00 2001 From: iisaev Date: Sat, 24 Oct 2026 10:01:09 +0200 Subject: [PATCH] Item action and kind schemas with texts in seven languages Co-Authored-By: Claude Opus 5.5 --- locale/schema_en.properties | 14 +++++++ locale/schema_es.properties | 14 +++++++ locale/schema_ja.properties | 14 +++++++ locale/schema_ko.properties | 14 +++++++ locale/schema_ru.properties | 14 +++++++ locale/schema_vi.properties | 14 +++++++ locale/schema_zh.properties | 14 +++++++ schemas/items_base.json | 75 +++++++++++++++++++++++++++++++++++++ 8 files changed, 173 insertions(+) create mode 100644 locale/schema_en.properties create mode 100644 locale/schema_es.properties create mode 100644 locale/schema_ja.properties create mode 100644 locale/schema_ko.properties create mode 100644 locale/schema_ru.properties create mode 100644 locale/schema_vi.properties create mode 100644 locale/schema_zh.properties create mode 100644 schemas/items_base.json diff --git a/locale/schema_en.properties b/locale/schema_en.properties new file mode 100644 index 0000000..d83f1f1 --- /dev/null +++ b/locale/schema_en.properties @@ -0,0 +1,14 @@ +items/schema/builtin/item_add = Give an item +items/schema/builtin/item_add_desc = A chest, a gift, something found on the map +items/schema/field/item = Item +items/schema/field/count = Count +items/schema/kind/item = Items +items/schema/kind/item_desc = Everything in the bag: food, potions, gear +items/schema/field/name = Name +items/schema/field/description = Description +items/schema/field/cost = Cost +items/schema/field/picture = Picture +items/schema/field/item_type = Item types +items/schema/field/item_type_desc = Comma separated: Resource, Food, Used, TargetUsed, Quest, Recipe, CantDrop +items/schema/field/item_action = Item action +items/schema/field/item_action_desc = action/heal, action/equip, action/stat_up… or null diff --git a/locale/schema_es.properties b/locale/schema_es.properties new file mode 100644 index 0000000..3b958c9 --- /dev/null +++ b/locale/schema_es.properties @@ -0,0 +1,14 @@ +items/schema/builtin/item_add = Dar un objeto +items/schema/builtin/item_add_desc = Un cofre, un regalo, algo hallado en el mapa +items/schema/field/item = Objeto +items/schema/field/count = Cantidad +items/schema/kind/item = Objetos +items/schema/kind/item_desc = Todo lo de la bolsa: comida, pociones, equipo +items/schema/field/name = Nombre +items/schema/field/description = Descripción +items/schema/field/cost = Coste +items/schema/field/picture = Imagen +items/schema/field/item_type = Tipos de objeto +items/schema/field/item_type_desc = Separados por comas: Resource, Food, Used, TargetUsed, Quest, Recipe, CantDrop +items/schema/field/item_action = Acción del objeto +items/schema/field/item_action_desc = action/heal, action/equip, action/stat_up… o null diff --git a/locale/schema_ja.properties b/locale/schema_ja.properties new file mode 100644 index 0000000..3da1245 --- /dev/null +++ b/locale/schema_ja.properties @@ -0,0 +1,14 @@ +items/schema/builtin/item_add = アイテムを渡す +items/schema/builtin/item_add_desc = 宝箱、贈り物、マップでの拾い物 +items/schema/field/item = アイテム +items/schema/field/count = 個数 +items/schema/kind/item = アイテム +items/schema/kind/item_desc = かばんの中身すべて:食べ物、薬、装備 +items/schema/field/name = 名前 +items/schema/field/description = 説明 +items/schema/field/cost = コスト +items/schema/field/picture = 画像 +items/schema/field/item_type = アイテムの種類 +items/schema/field/item_type_desc = カンマ区切り:Resource、Food、Used、TargetUsed、Quest、Recipe、CantDrop +items/schema/field/item_action = アイテムの行動 +items/schema/field/item_action_desc = action/heal、action/equip、action/stat_up… または null diff --git a/locale/schema_ko.properties b/locale/schema_ko.properties new file mode 100644 index 0000000..26c15f1 --- /dev/null +++ b/locale/schema_ko.properties @@ -0,0 +1,14 @@ +items/schema/builtin/item_add = 아이템 지급 +items/schema/builtin/item_add_desc = 상자, 선물, 맵에서 찾은 것 +items/schema/field/item = 아이템 +items/schema/field/count = 개수 +items/schema/kind/item = 아이템 +items/schema/kind/item_desc = 가방 속 모든 것: 음식, 물약, 장비 +items/schema/field/name = 이름 +items/schema/field/description = 설명 +items/schema/field/cost = 비용 +items/schema/field/picture = 그림 +items/schema/field/item_type = 아이템 종류 +items/schema/field/item_type_desc = 쉼표로 구분: Resource, Food, Used, TargetUsed, Quest, Recipe, CantDrop +items/schema/field/item_action = 아이템 행동 +items/schema/field/item_action_desc = action/heal, action/equip, action/stat_up… 또는 null diff --git a/locale/schema_ru.properties b/locale/schema_ru.properties new file mode 100644 index 0000000..f98b6c8 --- /dev/null +++ b/locale/schema_ru.properties @@ -0,0 +1,14 @@ +items/schema/builtin/item_add = Дать предмет +items/schema/builtin/item_add_desc = Сундук, подарок, находка на карте +items/schema/field/item = Предмет +items/schema/field/count = Количество +items/schema/kind/item = Предметы +items/schema/kind/item_desc = Всё, что лежит в сумке: еда, зелья, снаряжение +items/schema/field/name = Название +items/schema/field/description = Описание +items/schema/field/cost = Цена +items/schema/field/picture = Картинка +items/schema/field/item_type = Типы предмета +items/schema/field/item_type_desc = Через запятую: Resource, Food, Used, TargetUsed, Quest, Recipe, CantDrop +items/schema/field/item_action = Действие предмета +items/schema/field/item_action_desc = action/heal, action/equip, action/stat_up… или null diff --git a/locale/schema_vi.properties b/locale/schema_vi.properties new file mode 100644 index 0000000..ddd9381 --- /dev/null +++ b/locale/schema_vi.properties @@ -0,0 +1,14 @@ +items/schema/builtin/item_add = Cho vật phẩm +items/schema/builtin/item_add_desc = Rương, quà, thứ nhặt được trên bản đồ +items/schema/field/item = Vật phẩm +items/schema/field/count = Số lượng +items/schema/kind/item = Vật phẩm +items/schema/kind/item_desc = Mọi thứ trong túi: đồ ăn, thuốc, trang bị +items/schema/field/name = Tên +items/schema/field/description = Mô tả +items/schema/field/cost = Chi phí +items/schema/field/picture = Hình ảnh +items/schema/field/item_type = Loại vật phẩm +items/schema/field/item_type_desc = Cách nhau bằng dấu phẩy: Resource, Food, Used, TargetUsed, Quest, Recipe, CantDrop +items/schema/field/item_action = Hành động vật phẩm +items/schema/field/item_action_desc = action/heal, action/equip, action/stat_up… hoặc null diff --git a/locale/schema_zh.properties b/locale/schema_zh.properties new file mode 100644 index 0000000..a6bee35 --- /dev/null +++ b/locale/schema_zh.properties @@ -0,0 +1,14 @@ +items/schema/builtin/item_add = 给予物品 +items/schema/builtin/item_add_desc = 宝箱、礼物、地图上的发现 +items/schema/field/item = 物品 +items/schema/field/count = 数量 +items/schema/kind/item = 物品 +items/schema/kind/item_desc = 背包里的一切:食物、药水、装备 +items/schema/field/name = 名称 +items/schema/field/description = 描述 +items/schema/field/cost = 消耗 +items/schema/field/picture = 图片 +items/schema/field/item_type = 物品类型 +items/schema/field/item_type_desc = 逗号分隔:Resource、Food、Used、TargetUsed、Quest、Recipe、CantDrop +items/schema/field/item_action = 物品动作 +items/schema/field/item_action_desc = action/heal、action/equip、action/stat_up……或 null diff --git a/schemas/items_base.json b/schemas/items_base.json new file mode 100644 index 0000000..4fd4b0e --- /dev/null +++ b/schemas/items_base.json @@ -0,0 +1,75 @@ +{ + "Actions": [ + { + "Id": "item.add", + "Name": "items/schema/builtin/item_add", + "Description": "items/schema/builtin/item_add_desc", + "Category": "items", + "Params": [ + { + "Key": "id", + "Type": "ref", + "Kind": "item", + "Required": true, + "Name": "items/schema/field/item" + }, + { + "Key": "count", + "Type": "int", + "Default": "1", + "Name": "items/schema/field/count" + } + ] + } + ], + "Kinds": [ + { + "Kind": "item", + "Name": "items/schema/kind/item", + "Description": "items/schema/kind/item_desc", + "Folder": "items", + "NewId": "{mod}/new_item", + "Order": 10, + "Fields": [ + { + "Key": "Name", + "Type": "locale", + "KeyPattern": "{mod}/item/{id}/name", + "Name": "items/schema/field/name" + }, + { + "Key": "Description", + "Type": "locale", + "KeyPattern": "{mod}/item/{id}/desc", + "Name": "items/schema/field/description" + }, + { + "Key": "Cost", + "Type": "int", + "Default": "1", + "Name": "items/schema/field/cost" + }, + { + "Key": "Sprite", + "Type": "picture", + "Group": "items", + "Name": "items/schema/field/picture" + }, + { + "Key": "ItemType", + "Type": "text", + "Default": "Resource", + "Name": "items/schema/field/item_type", + "Description": "items/schema/field/item_type_desc" + }, + { + "Key": "ItemAction", + "Type": "text", + "Default": "null", + "Name": "items/schema/field/item_action", + "Description": "items/schema/field/item_action_desc" + } + ] + } + ] +}