Skip to content

Commit

Permalink
[Xedra Evolved] Add treesung gear (#78197)
Browse files Browse the repository at this point in the history
* Create melee_treesung.json

* Create range_treesung.json

* Add verdant legguards

* Add verdant legguards enchantment

* Change id

* Boann gives you legguards too

* Add some recipes

* Update learning EoC

* Add rest of recipes

* Add monster drops

* Kick tests

* Implement suggestions from code review

* Update data/mods/Xedra_Evolved/recipes/paraclesians/arvore_recipes.json

* Kick tests

---------

Co-authored-by: Anton Burmistrov <[email protected]>
  • Loading branch information
Standing-Storm and Night-Pryanik authored Dec 8, 2024
1 parent 545788c commit 9200e5c
Show file tree
Hide file tree
Showing 9 changed files with 780 additions and 21 deletions.
9 changes: 8 additions & 1 deletion data/mods/Xedra_Evolved/enchantments/armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,20 @@
"ench_effects": [ { "effect": "effect_subtle_spell_flag", "intensity": 1 } ]
},
{
"id": "ench_verdant_boots",
"id": "ench_verdant_legs",
"type": "enchantment",
"has": "WORN",
"condition": "ALWAYS",
"values": [ { "value": "FOOTSTEP_NOISE", "multiply": -0.6 } ],
"ench_effects": [ { "effect": "effect_steady_flag", "intensity": 1 }, { "effect": "effect_sludge_immune_flag", "intensity": 1 } ]
},
{
"id": "ench_verdant_boots",
"type": "enchantment",
"has": "WORN",
"condition": "ALWAYS",
"values": [ { "value": "REGEN_STAMINA", "multiply": 0.25 } ]
},
{
"id": "ench_verdant_cloak",
"type": "enchantment",
Expand Down
11 changes: 8 additions & 3 deletions data/mods/Xedra_Evolved/itemgroups/itemgroups.json
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@
{ "item": "moons_tears_estoc", "prob": 20 },
{ "item": "moons_tears_spear", "prob": 30 },
{ "item": "moons_tears_battleaxe", "prob": 20 },
{ "item": "moons_tears_katana", "prob": 20 }
{ "item": "moons_tears_katana", "prob": 20 },
{ "item": "treesung_spear", "prob": 3 },
{ "item": "treesung_pike", "prob": 3 }
]
},
{
Expand Down Expand Up @@ -288,7 +290,9 @@
{ "item": "moons_tears_mace", "prob": 20 },
{ "item": "moons_tears_scimitar", "prob": 20 },
{ "item": "moons_tears_spear", "prob": 20 },
{ "item": "moons_tears_battleaxe", "prob": 20 }
{ "item": "moons_tears_battleaxe", "prob": 20 },
{ "item": "treesung_mace", "prob": 3 },
{ "item": "treesung_warhammer", "prob": 3 }
]
},
{
Expand Down Expand Up @@ -354,7 +358,8 @@
{ "item": "moons_tears_broadsword", "prob": 20 },
{ "item": "moons_tears_arming_sword", "prob": 20 },
{ "item": "moons_tears_estoc", "prob": 20 },
{ "item": "moons_tears_katana", "prob": 20 }
{ "item": "moons_tears_katana", "prob": 20 },
{ "item": "treesung_mace", "prob": 3 }
]
},
{
Expand Down
34 changes: 34 additions & 0 deletions data/mods/Xedra_Evolved/items/armor/armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -1258,6 +1258,40 @@
"melee_damage": { "bash": 2 },
"relic_data": { "passive_effects": [ { "id": "ench_verdant_gauntlets" } ] }
},
{
"id": "leg_guards_verdant",
"//": "Derived from chitin leg guards",
"type": "ARMOR",
"category": "armor",
"name": { "str": "pair of verdant leg guards", "str_pl": "pairs of verdant leg guards" },
"description": "A pair of leg guards made from living plant matter, with bark covering the outer surface. This is definitely not anything that could have existed before the Cataclysm.",
"weight": "510 g",
"volume": "5000 ml",
"price": "250 USD",
"price_postapoc": "7 USD 50 cent",
"material": [ "mut_wood", "veggy" ],
"symbol": "[",
"looks_like": "legguard_hard",
"color": "green",
"warmth": 20,
"material_thickness": 4,
"environmental_protection": 2,
"flags": [ "STURDY", "OUTER", "BLOCK_WHILE_WORN", "WATER_FRIENDLY", "PADDED" ],
"armor": [
{
"breathability": "AVERAGE",
"material": [
{ "type": "mut_wood", "covered_by_mat": 95, "thickness": 3 },
{ "type": "veggy", "covered_by_mat": 100, "thickness": 1.0 }
],
"coverage": 100,
"covers": [ "leg_l", "leg_r" ],
"specifically_covers": [ "leg_lower_r", "leg_lower_l", "leg_knee_r", "leg_knee_l" ],
"encumbrance": 3
}
],
"relic_data": { "passive_effects": [ { "id": "ench_verdant_legs" } ] }
},
{
"id": "boots_verdant",
"//": "Derived from chitinous boots",
Expand Down
85 changes: 85 additions & 0 deletions data/mods/Xedra_Evolved/items/melee_treesung.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
[
{
"type": "GENERIC",
"id": "treesung_spear",
"copy-from": "spear_wood",
"looks_like": "spear_wood",
"name": { "str": "treesung spear" },
"description": "A stout wooden pole sharpened on one end, all formed from a single piece of wood, with twists and curves like it grew in place rather than being made.",
"color": "green",
"proportional": { "melee_damage": { "stab": 1.5 } },
"extend": { "flags": [ "WOODEN_WEAPON", "NO_REPAIR", "DURABLE_MELEE" ] }
},
{
"type": "GENERIC",
"id": "treesung_pike",
"copy-from": "pike_wood",
"looks_like": "pike_wood",
"name": { "str": "treesung long spear" },
"description": "A giant spear over three meters long, all formed from a single piece of wood, with twists and curves like it grew in place rather than being made.",
"color": "green",
"proportional": { "melee_damage": { "stab": 1.5 } },
"extend": { "flags": [ "WOODEN_WEAPON", "NO_REPAIR" ] }
},
{
"type": "GENERIC",
"id": "treesung_mace",
"copy-from": "mace",
"looks_like": "mace",
"name": { "str": "treesung mace" },
"description": "A weapon with a long wooden handle connected to a knobby wooden head, all formed from a single piece of wood, with twists and curves like it grew in place rather than being made.",
"color": "green",
"material": [ { "type": "wood", "portion": 1 } ],
"proportional": { "melee_damage": { "bash": 0.9 } },
"extend": { "flags": [ "WOODEN_WEAPON", "NO_REPAIR" ] }
},
{
"type": "GENERIC",
"id": "treesung_q_staff",
"copy-from": "q_staff",
"looks_like": "q_staff",
"name": { "str": "treesung quarterstaff", "str_pl": "treesung quarterstaves" },
"description": "A sturdy staff all formed from a single piece of wood, with twists and curves like it grew in place rather than being carved.",
"color": "green",
"material": [ { "type": "wood", "portion": 1 } ],
"proportional": { "melee_damage": { "bash": 1.1 } },
"extend": { "flags": [ "WOODEN_WEAPON", "NO_REPAIR", "DURABLE_MELEE" ] }
},
{
"type": "GENERIC",
"id": "treesung_warhammer",
"copy-from": "warhammer",
"looks_like": "warhammer",
"name": { "str": "treesung warhammer" },
"description": "A long hammer with a spike on one end, all formed from a single piece of wood, with twists and curves like it grew in place rather than being carved.",
"color": "green",
"material": [ { "type": "wood", "portion": 1 } ],
"proportional": { "melee_damage": { "bash": 1.1, "stab": 0.9 } },
"extend": { "flags": [ "WOODEN_WEAPON", "NO_REPAIR" ] }
},
{
"type": "GENERIC",
"id": "treesung_naginata",
"copy-from": "naginata",
"looks_like": "naginata",
"name": { "str": "treesung sword-spear" },
"description": "A sturdy polearm with a curved blade, all formed from a single piece of wood, with twists and curves like it grew in place rather than being carved. You're not sure how long it will hold its edge, but it's surprisingly sharp.",
"color": "green",
"material": [ { "type": "wood", "portion": 1 } ],
"proportional": { "melee_damage": { "cut": 0.9 } },
"extend": { "flags": [ "WOODEN_WEAPON", "NO_REPAIR" ] },
"delete": { "flags": [ "DURABLE_MELEE" ] }
},
{
"type": "GENERIC",
"id": "treesung_baselard",
"copy-from": "knife_baselard",
"looks_like": "knife_baselard",
"name": { "str": "treesung baselard" },
"description": "A large knife, all formed from a single piece of wood, with twists and curves like it grew in place rather than being carved. You're not sure how long it will hold its edge, but it's surprisingly sharp.",
"color": "green",
"material": [ { "type": "wood", "portion": 1 } ],
"proportional": { "melee_damage": { "stab": 0.9 } },
"extend": { "flags": [ "WOODEN_WEAPON", "NO_REPAIR" ] }
}
]
34 changes: 34 additions & 0 deletions data/mods/Xedra_Evolved/items/range_treesung.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[
{
"type": "GUN",
"id": "treesung_bow",
"copy-from": "shortbow",
"looks_like": "shortbow",
"name": { "str": "treesung bow" },
"description": "A wooden shortbow with a thin vine for a string, all formed from a single piece of wood, with twists and curves like it grew in place rather than being made.",
"color": "green",
"range": 14,
"extend": { "flags": [ "WOODEN_WEAPON", "NO_REPAIR" ] }
},
{
"type": "GUN",
"id": "treesung_greatbow",
"copy-from": "woodgreatbow",
"looks_like": "woodgreatbow",
"name": { "str": "treesung greatbow" },
"description": "A truly enormous wooden bow with a thin vine for a string, all formed from a single piece of wood, with twists and curves like it grew in place rather than being made.",
"color": "green",
"range": 26,
"extend": { "flags": [ "WOODEN_WEAPON", "NO_REPAIR" ] }
},
{
"type": "AMMO",
"id": "arrow_treesung",
"copy-from": "arrow_fire_hardened_fletched",
"name": { "str": "treesung arrow" },
"description": "An arrow all formed from a single piece of wood, with twists and curves like it grew in place rather than being made. It even has leaves for fletching.",
"color": "green",
"damage": { "damage_type": "stab", "armor_penetration": 4, "constant_damage_multiplier": 1.25 },
"recovery_chance": 85
}
]
1 change: 1 addition & 0 deletions data/mods/Xedra_Evolved/monsters/elementals.json
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@
"monster_message": "%1$s gestures and you hear the creak of growing wood!"
}
],
"death_drops": { "subtype": "collection", "items": [ { "item": "treesung_pike", "prob": 30, "damage": [ 1, 5 ] } ] },
"anger_triggers": [ "FRIEND_DIED", "PLAYER_CLOSE", "FRIEND_ATTACKED", "HURT", "FIRE" ],
"dissect": "dissect_arvore_huge",
"flags": [
Expand Down
24 changes: 22 additions & 2 deletions data/mods/Xedra_Evolved/mutations/paraclesians/arvore_eocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,18 @@
{ "not": { "u_know_recipe": "create_verdant_helm" } },
{ "not": { "u_know_recipe": "create_verdant_cuirass" } },
{ "not": { "u_know_recipe": "create_verdant_gauntlets" } },
{ "not": { "u_know_recipe": "create_verdant_leg_guards" } },
{ "not": { "u_know_recipe": "create_verdant_boots" } },
{ "not": { "u_know_recipe": "create_verdant_cloak" } }
{ "not": { "u_know_recipe": "create_verdant_cloak" } },
{ "not": { "u_know_recipe": "create_shortbow_treesung" } },
{ "not": { "u_know_recipe": "create_greatbow_treesung" } },
{ "not": { "u_know_recipe": "create_arrow_treesung" } },
{ "not": { "u_know_recipe": "create_spear_treesung" } },
{ "not": { "u_know_recipe": "create_pike_treesung" } },
{ "not": { "u_know_recipe": "create_mace_treesung" } },
{ "not": { "u_know_recipe": "create_q_staff_treesung" } },
{ "not": { "u_know_recipe": "create_naginata_treesung" } },
{ "not": { "u_know_recipe": "create_baselard_treesung" } }
]
},
{
Expand Down Expand Up @@ -824,8 +834,18 @@
"create_verdant_helm",
"create_verdant_cuirass",
"create_verdant_gauntlets",
"create_verdant_leg_guards",
"create_verdant_boots",
"create_verdant_cloak"
"create_verdant_cloak",
"create_shortbow_treesung",
"create_greatbow_treesung",
"create_arrow_treesung",
"create_spear_treesung",
"create_pike_treesung",
"create_mace_treesung",
"create_q_staff_treesung",
"create_naginata_treesung",
"create_baselard_treesung"
],
"type": "recipe"
},
Expand Down
1 change: 1 addition & 0 deletions data/mods/Xedra_Evolved/npc/boann.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@
{ "u_spawn_item": "helmet_verdant", "count": 1 },
{ "u_spawn_item": "armor_verdant_cuirass", "count": 1 },
{ "u_spawn_item": "gauntlets_verdant", "count": 1 },
{ "u_spawn_item": "legguards_verdant", "count": 1 },
{ "u_spawn_item": "boots_verdant", "count": 1 },
{ "u_spawn_item": "cloak_verdant", "count": 1 },
{ "math": [ "Boann_Quests_Completed++" ] },
Expand Down
Loading

0 comments on commit 9200e5c

Please sign in to comment.