Skip to content

Commit 316422d

Browse files
Two new faults for clothing (#86530)
* Added faults for cotton armor/clothing Added two faults, two fault-fixes and a fault group for armor/clothing made out of cotton * Update fault_fixes_armor.json * Added fault type: mechanical damage * Update data/json/faults/fault_fixes_armor.json Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update data/json/faults/fault_fixes_armor.json Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 653d6b1 commit 316422d

File tree

4 files changed

+62
-0
lines changed

4 files changed

+62
-0
lines changed

data/json/faults/fault_fixes_armor.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,5 +277,29 @@
277277
[ "rivet_replacement", 4 ],
278278
{ "qualities": [ { "id": "FABRIC_CUT", "level": 2 }, { "id": "LEATHER_AWL", "level": 1 } ] }
279279
]
280+
},
281+
{
282+
"type": "fault_fix",
283+
"id": "mend_armor_cotton_tear_stitch",
284+
"name": "Stitch the fabric back together",
285+
"faults_removed": [ "fault_cotton_torn" ],
286+
"success_msg": "You stitch the tear in %s back up.",
287+
"mod_damage": -1000,
288+
"mod_degradation": -25,
289+
"time": "10 m",
290+
"skills": { "tailor": 1 },
291+
"requirements": [ [ "filament", 1 ], { "qualities": [ { "id": "SEW", "level": 1 } ] } ]
292+
},
293+
{
294+
"type": "fault_fix",
295+
"id": "mend_armor_cotton_hole_close",
296+
"name": "Patch the hole.",
297+
"faults_removed": [ "fault_cotton_hole" ],
298+
"success_msg": "You patch the hole in %s.",
299+
"mod_damage": -1000,
300+
"mod_degradation": -25,
301+
"time": "20 m",
302+
"skills": { "tailor": 1 },
303+
"requirements": [ [ "filament", 3 ], [ "fabric_standard_small", 1 ], { "qualities": [ { "id": "SEW", "level": 1 } ] } ]
280304
}
281305
]

data/json/faults/fault_groups_armor.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,10 @@
2323
"type": "fault_group",
2424
"id": "plate_qt",
2525
"group": [ { "fault": "fault_armor_qt_dented", "weight": 100 }, { "fault": "fault_armor_qt_punctured", "weight": 5 } ]
26+
},
27+
{
28+
"type": "fault_group",
29+
"id": "fabric_cotton",
30+
"group": [ { "fault": "fault_cotton_torn", "weight": 100 }, { "fault": "fault_cotton_hole", "weight": 75 } ]
2631
}
2732
]

data/json/faults/faults_armor.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,37 @@
116116
{ "damage_id": "cut", "multiply": 0.9 },
117117
{ "damage_id": "stab", "multiply": 0.9 }
118118
]
119+
},
120+
{
121+
"type": "fault",
122+
"id": "fault_cotton_torn",
123+
"name": { "str": "Torn cotton" },
124+
"description": "There's a tear in the fabric.",
125+
"item_prefix": "torn",
126+
"message": "%s's fabric was torn!",
127+
"fault_type": "mechanical_damage",
128+
"degradation_mod": 25,
129+
"price_modifier": 0.7,
130+
"armor_mod": [
131+
{ "damage_id": "bash", "multiply": 0.9 },
132+
{ "damage_id": "cut", "multiply": 0.9 },
133+
{ "damage_id": "stab", "multiply": 0.9 }
134+
]
135+
},
136+
{
137+
"type": "fault",
138+
"id": "fault_cotton_hole",
139+
"name": { "str": "Hole" },
140+
"description": "There's a big hole in the fabric.",
141+
"message": "A hole is ripped into the %s!",
142+
"fault_type": "mechanical_damage",
143+
"affected_by_degradation": true,
144+
"degradation_mod": 5,
145+
"price_modifier": 0.7,
146+
"armor_mod": [
147+
{ "damage_id": "bash", "multiply": 0.85 },
148+
{ "damage_id": "cut", "multiply": 0.85 },
149+
{ "damage_id": "stab", "multiply": 0.85 }
150+
]
119151
}
120152
]

data/json/items/armor/torso_clothes.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
"price": "10 USD",
1212
"material": [ "cotton" ],
1313
"color": "white",
14+
"faults": [ { "fault_group": "fabric_cotton" } ],
1415
"armor": [
1516
{ "covers": [ "torso" ], "specifically_covers": [ "torso_waist" ], "coverage": 100, "encumbrance": [ 1, 1 ] },
1617
{

0 commit comments

Comments
 (0)