diff options
| author | troido <troido@protonmail.com> | 2020-09-22 17:51:23 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-09-22 17:51:23 +0200 |
| commit | 77eed840ceccc58881c06efd4403be86c936b348 (patch) | |
| tree | eca58ff173a9a36025aedfcd74d6d20aa926d2d0 /content | |
| parent | 5cf8cc94bdf84341589fab4d1b941aa104de9a42 (diff) | |
added way to create dyed capes
Diffstat (limited to 'content')
| -rw-r--r-- | content/encyclopediae/default_encyclopedia.json | 37 | ||||
| -rw-r--r-- | content/encyclopediae/npcs.json | 35 | ||||
| -rw-r--r-- | content/maps/town.json | 36 |
3 files changed, 92 insertions, 16 deletions
diff --git a/content/encyclopediae/default_encyclopedia.json b/content/encyclopediae/default_encyclopedia.json index bd1ae9c..ca12897 100644 --- a/content/encyclopediae/default_encyclopedia.json +++ b/content/encyclopediae/default_encyclopedia.json @@ -124,6 +124,32 @@ ]] ]]}] ] + }, + "sewingtable": { + "sprite": "sewingtable", + "height": 1.0, + "components": [ + ["Interactable", {"typ": "exchange", "arg": ["list", [ + "sew ", + ["list", [ + ["list", ["cape", ["list", ["cottoncloth", "cottoncloth", "cottoncloth", "cottonyarn", "cottonyarn"]], ["list", ["cape"]]]] + ]] + ]]}] + ] + }, + "tub": { + "sprite": "tub", + "height": 1.0, + "components": [ + ["Interactable", {"typ": "exchange", "arg": ["list", [ + "dye ", + ["list", [ + ["list", ["red cape", ["list", ["cape", "reddye"]], ["list", ["redcape"]]]], + ["list", ["green cape", ["list", ["cape", "greendye"]], ["list", ["greencape"]]]], + ["list", ["blue cape", ["list", ["cape", "bluedye"]], ["list", ["bluecape"]]]] + ]] + ]]}] + ] } }, "items": { @@ -158,6 +184,17 @@ "stats": {"mining": 5} }] }, + "reddye": {"sprite": "bag"}, + "greendye": {"sprite": "bag"}, + "bluedye": {"sprite": "bag"}, + "cape": { + "sprite": "armour", + "action": ["equip", { + "slot": "back", + "stats": {}, + "sprite": "grayplayer" + }] + }, "redcape": { "sprite": "armour", "action": ["equip", { diff --git a/content/encyclopediae/npcs.json b/content/encyclopediae/npcs.json index ffc60cf..02f13ad 100644 --- a/content/encyclopediae/npcs.json +++ b/content/encyclopediae/npcs.json @@ -85,6 +85,7 @@ "trader": { "sprite": "human", "height": 1.5, + "name": "crop trader", "components": [ ["Interactable", {"typ": "exchange", "arg": ["list", [ "buy ", @@ -103,6 +104,27 @@ ["Movable", {"cooldown": 3}] ] }, + "dyetrader": { + "sprite": "human", + "height": 1.5, + "name": "dye trader", + "components": [ + ["Interactable", {"typ": "exchange", "arg": ["list", [ + "buy ", + ["list", [ + ["list", ["red dye", ["list", ["club", "club"]], ["list", ["reddye"]]]], + ["list", ["green dye", ["list", ["stone", "stone", "stone", "stone", "stone"]], ["list", ["greendye"]]]], + ["list", ["blue dye", ["list", ["sword"]], ["list", ["bluedye"]]]] + ]] + ]]}], + ["MonsterAI", { + "view_distance": 1, + "move_chance": 0.01, + "homesickness": 0.3 + }], + ["Movable", {"cooldown": 3}] + ] + }, "toolsmith": { "sprite": "human", "height": 1.5, @@ -121,6 +143,19 @@ }], ["Movable", {"cooldown": 3}] ] + }, + "villager": { + "sprite": "human", + "height": 1.5, + "name": "villager", + "components": [ + ["MonsterAI", { + "view_distance": 1, + "move_chance": 0.01, + "homesickness": 0.3 + }], + ["Movable", {"cooldown": 3}] + ] } } } diff --git a/content/maps/town.json b/content/maps/town.json index 7a74be3..98e3de0 100644 --- a/content/maps/town.json +++ b/content/maps/town.json @@ -25,23 +25,23 @@ ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,,,,,,,,...,,,,,,,,,,,,,,,,h,", ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,,,,,,,,...,,,,,,,,,,,,,,,,h,", ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,,,,,,,,...,,,,,,,,,,,,,,,,h,", - ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,,,,,,,,...,,,,,,,,,,,,,,,,h,", - ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,,,,,,,,...,,,,,,,,,,,,,,,,h,", - ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,,,,,,,,...,,,,,,,,,,,,,,,,h,", - ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,,,,,,,,...,,,,,,,,,,,,,,,,h,", - ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,,,,,,,,...,,,,,,,,,,,,,,,,h,", - ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,,,,,,,,...,,,,,,,,,,,,,,,,h,", - ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,,,,,,,,...,,,,,,,,,,,,,,,,h,", - ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,,,,,,,,...,,,,,,,,,,,,,,,,h,", - ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,,,,,,,,...,,,,,,,,,,,,,,,,h,", - ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,,,,,,,,...,,,,,,,,,,,,,,,,h,", - ",h,,,,,,,,,,,,,,,,,======.....................,,,,,,,,,,,,,,,,h,", - ",h,,,,,,,,,,,,,,,,,======.....................,,,,,,,,,,,,,,,,h,", - ",h,,,,,,,,,,,,,,,,,======.....................,,,,,,,,,,,,,,,,h,", - ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,,,,,,,,...,,,,,,,,,,,,,,,,h,", ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,######,...,,,,,,,,,,,,,,,,h,", ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,#++++#,...,,,,,,,,,,,,,,,,h,", - ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,#t+++#,...,,,,,,,,,,,,,,,,h,", + ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,#++++#,...,,,,,,,,,,,,,,,,h,", + ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,#++++#,...,,,,,,,,,,,,,,,,h,", + ",h,,,,,,,,,,,,,,,,,~~~~~~,,#######,,#+####,...,,,,,,,,,,,,,,,,h,", + ",h,,,,,,,,,,,,,,,,,~~~~~~,,#u++++#,,#++D+#,...,,,,,,,,,,,,,,,,h,", + ",h,,,,,,,,,,,,,,,,,~~~~~~,,#u++V+#,,#++++#,...,,,,,,,,,,,,,,,,h,", + ",h,,,,,,,,,,,,,,,,,~~~~~~,,#u++++#,,#++++#,...,,,,,,,,,,,,,,,,h,", + ",h,,,,,,,,,,,,,,,,,~~~~~~,,#####+#,,###+##,...,,,,,,,,,,,,,,,,h,", + ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,.,,,,,,.,,,...,,,,,,,,,,,,,,,,h,", + ",h,,,,,,,,,,,,,,,,,======.....................,,,,,,,,,,,,,,,,h,", + ",h,,,,,,,,,,,,,,,,,======.....................,,,,,,,,,,,,,,,,h,", + ",h,,,,,,,,,,,,,,,,,======.....................,,######,,,,,,,,h,", + ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,,,,,,,,...,,#++V+#,,,,,,,,h,", + ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,######,.....++++s#,,,,,,,,h,", + ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,#++++#,...,,#++++#,,,,,,,,h,", + ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,#t+++#,...,,######,,,,,,,,h,", ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,#+++++....,,,,,,,,,,,,,,,,h%", ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,#++++#,....................%", ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,,######,....................%", @@ -52,7 +52,7 @@ ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,#+++++#,...,,,,,#++++++#,,,h,", ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,#4++++#,...,,,,,#++++++#,,,h,", ",h,,,,,,,,,,,,,,,,,~~~~~~,,,,,,,,,,#++++++....,,,,,#++++++#,,,h,", - ",h,,,,,,,,,,,,,,,,,~~~~~~~,,,,,,,,,#+++++#,...,,,,,#++++++#,,,h,", + ",h,,,,,,,,,,,,,,,,,~~~~~~~,,,,,,,,,#+V+++#,...,,,,,#++++++#,,,h,", ",h,,,,,,,,,,,,,,,,,~~~~~~~~~~~,,,,,#+++5+#,...,,,,,#+++S++#,,,h,", ",h,,,,,,,,,,,,,,,,,~~~~~~~~~~~~~~,,#######,...,,,,,#++++++#,,,h,", ",h,,,,,,,,,,,,,,,,,~~~~~~~~~~~~~~~~~,,,,,,,...,,,,,########,,,h,", @@ -93,6 +93,10 @@ "t": ["floor", "trader"], "4": ["floor", "loom"], "5": ["floor", "spinningwheel"], + "s": ["floor", "sewingtable"], + "u": ["floor", "tub"], + "V": ["floor", "villager"], + "D": ["floor", "dyetrader"], " ": [] } } |
