Skip to content

Commit

Permalink
Weakpoints as objects (#53486)
Browse files Browse the repository at this point in the history
  • Loading branch information
I-am-Erk authored Dec 24, 2021
1 parent 3acaa91 commit 2eb7a4e
Show file tree
Hide file tree
Showing 16 changed files with 772 additions and 452 deletions.
1 change: 1 addition & 0 deletions data/json/effects.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@
"desc": [ "You've been knocked off-balance by an attack'." ],
"apply_message": "You're staggered off-balance.",
"base_mods": { "speed_mod": [ -20 ] },
"removes_effects": [ "grabbing" ],
"rating": "bad",
"show_in_info": true
},
Expand Down
88 changes: 88 additions & 0 deletions data/json/monster_weakpoints/generic_weakpoints.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
[
{
"type": "weakpoint_set",
"id": "wps_natural_armor",
"weakpoints": [
{
"id": "gap",
"name": "a small gap in the thick hide",
"coverage": 5,
"difficulty": { "melee": 4, "ranged": 5 },
"coverage_mult": { "broad": 0.5 },
"armor_mult": { "all": 0.25 }
},
{
"id": "joint",
"name": "a soft fold in the thick hide",
"coverage": 10,
"difficulty": { "melee": 3, "ranged": 5 },
"coverage_mult": { "point": 0.75 },
"armor_mult": { "all": 0.5 }
},
{
"id": "hard_hide",
"name": "a particularly thick patch of hide",
"armor_mult": { "all": 1.25 },
"crit_mult": { "all": 0.75 },
"coverage_mult": { "melee": 0.75 },
"coverage": 3
}
]
},
{
"type": "weakpoint_set",
"id": "wps_bone_armor",
"weakpoints": [
{
"id": "gap",
"name": "a small gap in the bony plates",
"coverage": 5,
"difficulty": { "melee": 4, "ranged": 5 },
"coverage_mult": { "broad": 0.5 },
"armor_mult": { "all": 0.25 }
},
{
"id": "joint",
"name": "a joint in the bony plates",
"coverage": 10,
"difficulty": { "melee": 3, "ranged": 7 },
"coverage_mult": { "ranged": 0.25 },
"armor_mult": { "all": 0.5 }
},
{
"id": "hard_point",
"name": "a particularly thick patch of bone",
"armor_mult": { "all": 1.25 },
"crit_mult": { "all": 0.75 },
"coverage_mult": { "melee": 0.75 },
"coverage": 3
}
]
},
{
"type": "weakpoint_set",
"id": "wps_eyes_big",
"//": "Let's assume that larger-than-tiny eyes are mildly more resistant to damage.",
"weakpoints": [
{
"id": "eye",
"name": "the eye",
"armor_mult": { "physical": 0.2 },
"coverage": 2,
"crit_mult": { "all": 1.25 },
"difficulty": { "ranged": 7, "melee": 5 },
"coverage_mult": { "broad": 0.5 },
"effects": [
{ "effect": "blind", "duration": [ 1, 2 ], "chance": 40, "message": "The %s is blinded!", "damage_required": [ 1, 40 ] },
{
"effect": "blind",
"permanent": true,
"chance": 20,
"message": "The %s's eyes are obliterated!",
"damage_required": [ 41, 100 ]
}
]
}
]
}
]
Loading

0 comments on commit 2eb7a4e

Please sign in to comment.