summaryrefslogtreecommitdiff
path: root/content/encyclopediae/default_encyclopedia.json
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-03-06 00:29:33 +0100
committertroido <troido@protonmail.com>2020-03-06 00:29:33 +0100
commita431234ab0c54ea87563a8e977c19fa3f1a5b400 (patch)
tree191e4e746f895a8b2df7f1a82acbf0b2cef8b8d0 /content/encyclopediae/default_encyclopedia.json
parentad7c7ae38bb54014164428f63afc970c20495955 (diff)
shortcut for defining items
Diffstat (limited to 'content/encyclopediae/default_encyclopedia.json')
-rw-r--r--content/encyclopediae/default_encyclopedia.json38
1 files changed, 7 insertions, 31 deletions
diff --git a/content/encyclopediae/default_encyclopedia.json b/content/encyclopediae/default_encyclopedia.json
index 3d7adae..bf5a1b2 100644
--- a/content/encyclopediae/default_encyclopedia.json
+++ b/content/encyclopediae/default_encyclopedia.json
@@ -86,13 +86,7 @@
"height": 0.3
},
"stone": {
- "components": [
- ["Item", {
- "ent": ["self", null],
- "name": ["string", "stone"],
- "action": ["action", ["build", "builtwall"]]
- }]
- ],
+ "item": ["build", "builtwall"],
"sprite": "stone",
"height": 0.4
},
@@ -198,13 +192,7 @@
"sprite": "seed",
"height": 0.2,
"name": "radishseed",
- "components": [
- ["Item", {
- "ent": ["self", null],
- "name": ["string", "radishseed"],
- "action": ["action", ["build", "plantedradishseed"]]
- }]
- ]
+ "item": ["build", "plantedradishseed"]
},
"plantedradishseed": {
"sprite": "seed",
@@ -221,27 +209,15 @@
"sprite": "food",
"height": 0.3,
"name": "radishes",
- "components": [
- ["Item", {
- "ent": ["self", null],
- "name": ["string", "radishes"],
- "action": ["action", ["eat", 3]]
- }]
- ]
+ "item": ["eat", 3]
},
"sword": {
"sprite": "sword",
"height": 0.5,
- "components": [
- ["Item", {
- "ent": ["self", null],
- "name": ["string", "sword"],
- "action": ["action", ["equip", {
- "slot": "hand",
- "stats": {"strength": 50}
- }]]
- }]
- ]
+ "item": ["equip", {
+ "slot": "hand",
+ "stats": {"strength": 50}
+ }]
}
}
}