Skip to content

Commit

Permalink
Merge pull request CleverRaven#62159 from LyleSY/JSONIFY_BIO_specials
Browse files Browse the repository at this point in the history
JSONify two BIO special attacks
  • Loading branch information
dseguin authored Nov 23, 2022
2 parents 94baf4f + 3ed07e0 commit 5a838b3
Show file tree
Hide file tree
Showing 7 changed files with 96 additions and 36 deletions.
37 changes: 37 additions & 0 deletions data/json/monster_special_attacks/monster_attacks.json
Original file line number Diff line number Diff line change
Expand Up @@ -407,5 +407,42 @@
"miss_msg_u": "%s goes for your legs! You duck!",
"miss_msg_npc": "%s goes <npcname>'s legs, but they duck!",
"effects": [ { "id": "downed", "duration": 3 } ]
},
{
"type": "monster_attack",
"attack_type": "melee",
"id": "bio_op_takedown",
"cooldown": 10,
"move_cost": 100,
"attack_chance": 50,
"hitsize_min": 4,
"attack_upper": false,
"damage_max_instance": [ { "damage_type": "bash", "amount": 10 } ],
"effects_require_dmg": false,
"hit_dmg_u": "%1$s kicks your %2$s and slams you to the ground!",
"hit_dmg_npc": "%1$s kicks <npcname> and slams them to the ground!",
"no_dmg_msg_u": "%1$s tries to kick %2$s and knock you down, but your armor protects you!",
"no_dmg_msg_npc": "%1$s tries to kick and knock <npcname> down, but their armor protects them!",
"miss_msg_u": "%s tries to kick your %2$s but you dodge!",
"miss_msg_npc": "%s tries to kick and knock down <npcname>, but they dodge!",
"effects": [ { "id": "downed", "duration": 3 }, { "id": "stunned", "duration": 100 } ]
},
{
"type": "monster_attack",
"attack_type": "melee",
"id": "bio_op_impale",
"cooldown": 25,
"move_cost": 150,
"damage_max_instance": [ { "damage_type": "stab", "amount": 36, "armor_penetration": 8, "armor_multiplier": 0.5 } ],
"hitsize_min": 4,
"effects": [ { "id": "bleed", "duration": 100, "affect_hit_bp": true } ],
"hit_dmg_u": "%1$s lunges and impales your %2$s!",
"hit_dmg_npc": "%1$s lunges and impales <npcname>!",
"miss_msg_u": "%1$s lunges and tries to impale your %2$s, but you dodge!",
"miss_msg_npc": "%1$s lunges and tries to impale <npcname>, but they dodge!",
"no_dmg_msg_u": "%1$s lunges and tries to impale your %2$s, but fails to penetrate your armor!",
"no_dmg_msg_npc": "%1$s tries to impale <npcname>, but fails to penetrate their armor!",
"dodgeable": true,
"blockable": true
}
]
2 changes: 1 addition & 1 deletion data/json/monsters/zed_misc.json
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@
"harvest": "zombie",
"special_attacks": [
{ "id": "smash", "throw_strength": 72, "cooldown": 30 },
[ "BIO_OP_TAKEDOWN", 20 ],
{ "id": "bio_op_takedown", "cooldown": 20 },
[ "RANGED_PULL", 20 ],
[ "GRAB_DRAG", 10 ]
],
Expand Down
2 changes: 1 addition & 1 deletion data/json/monsters/zed_soldiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@
"vision_night": 3,
"luminance": 4,
"harvest": "zombie",
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"special_when_hit": [ "ZAPBACK", 75 ],
"death_drops": "mon_zombie_bio_op_death_drops",
"fungalize_into": "mon_zombie_fungus",
Expand Down
15 changes: 10 additions & 5 deletions data/mods/DinoMod/monsters/dinosaur.json
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,12 @@
"speed": 75,
"hp": 300,
"zombify_into": "mon_ziats",
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ], [ "RANGED_PULL", 20 ], [ "GRAB_DRAG", 10 ], { "id": "teeth_rip", "cooldown": 10 } ],
"special_attacks": [
{ "id": "bio_op_takedown", "cooldown": 20 },
[ "RANGED_PULL", 20 ],
[ "GRAB_DRAG", 10 ],
{ "id": "teeth_rip", "cooldown": 10 }
],
"description": "Huge predatory bipedal dinosaur with long claws and strong arms for grappling.",
"reproduction": { "baby_egg": "egg_siats", "baby_count": 3, "baby_timer": 24 },
"harvest": "dino_large_pred"
Expand Down Expand Up @@ -397,7 +402,7 @@
{ "id": "teeth_puncture", "cooldown": 7 },
{ "id": "teeth_pull", "cooldown": 5 },
[ "LUNGE", 10 ],
[ "BIO_OP_TAKEDOWN", 30 ]
{ "id": "bio_op_takedown", "cooldown": 30 }
],
"flags": [ "SEES", "HEARS", "ANIMAL", "PATH_AVOID_DANGER_1", "BASHES", "DESTROYS", "WARM", "PUSH_MON" ],
"harvest": "dino_large_feather_pred",
Expand All @@ -423,7 +428,7 @@
{ "id": "teeth_puncture", "cooldown": 20 },
{ "id": "teeth_pull", "cooldown": 10 },
[ "LUNGE", 10 ],
[ "BIO_OP_TAKEDOWN", 20 ]
{ "id": "bio_op_takedown", "cooldown": 20 }
]
},
{
Expand All @@ -444,7 +449,7 @@
{ "id": "teeth_puncture", "cooldown": 10 },
{ "id": "teeth_pull", "cooldown": 10 },
[ "LUNGE", 10 ],
[ "BIO_OP_TAKEDOWN", 15 ]
{ "id": "bio_op_takedown", "cooldown": 15 }
],
"harvest": "dino_large_feather_pred"
},
Expand Down Expand Up @@ -486,7 +491,7 @@
{ "id": "teeth_puncture", "cooldown": 7 },
{ "id": "teeth_pull", "cooldown": 5 },
[ "LUNGE", 10 ],
[ "BIO_OP_TAKEDOWN", 15 ]
{ "id": "bio_op_takedown", "cooldown": 15 }
],
"flags": [
"SEES",
Expand Down
55 changes: 35 additions & 20 deletions data/mods/DinoMod/monsters/dinosaur_CBM.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"luminance": 1,
"starting_ammo": { "battery": 10 },
"special_attacks": [
[ "BIO_OP_TAKEDOWN", 20 ],
{ "id": "bio_op_takedown", "cooldown": 20 },
{
"type": "gun",
"cooldown": 7,
Expand Down Expand Up @@ -76,7 +76,7 @@
[ "GRAB", 7 ],
{ "type": "bite", "cooldown": 5 },
[ "LUNGE", 10 ],
[ "BIO_OP_TAKEDOWN", 15 ],
{ "id": "bio_op_takedown", "cooldown": 15 },
{ "type": "spell", "spell_data": { "id": "CBM_TRex_recording" }, "cooldown": 1600 }
],
"zombify_into": "mon_zyrannosaurus_bio_op",
Expand Down Expand Up @@ -105,7 +105,7 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"description": "A small fast-moving bipedal dinosaur dotted with crackling bionics. Its sharp claws and teeth glow menacingly.",
"special_when_hit": [ "ZAPBACK", 75 ],
"dissect": "dissect_CBM_DINO"
Expand All @@ -131,7 +131,7 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"zombify_into": "mon_zallimimus_bio_op",
"description": "A fast-moving feathered bipedal dinosaur dotted with crackling bionics. Its curved claws glow menacingly.",
"special_when_hit": [ "ZAPBACK", 75 ],
Expand All @@ -158,7 +158,7 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"zombify_into": "mon_zallimimus_bio_op",
"description": "A fast-moving feathered bipedal dinosaur dotted with crackling bionics and a long tail.",
"special_when_hit": [ "ZAPBACK", 75 ],
Expand All @@ -185,7 +185,10 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ { "type": "leap", "cooldown": 5, "max_range": 5, "allow_no_target": true }, [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [
{ "type": "leap", "cooldown": 5, "max_range": 5, "allow_no_target": true },
{ "id": "bio_op_takedown", "cooldown": 20 }
],
"description": "A small feathered bipedal dinosaur dotted with crackling bionics. Its small, hooked claws glow menacingly.",
"special_when_hit": [ "ZAPBACK", 75 ],
"dissect": "dissect_CBM_raptor"
Expand All @@ -211,7 +214,10 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ { "type": "leap", "cooldown": 5, "max_range": 5, "allow_no_target": true }, [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [
{ "type": "leap", "cooldown": 5, "max_range": 5, "allow_no_target": true },
{ "id": "bio_op_takedown", "cooldown": 20 }
],
"description": "A small feathered bipedal dinosaur dotted with crackling bionics. Its small, hooked claws glow menacingly.",
"special_when_hit": [ "ZAPBACK", 75 ],
"dissect": "dissect_CBM_raptor"
Expand All @@ -237,7 +243,10 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ { "type": "leap", "cooldown": 5, "max_range": 5, "allow_no_target": true }, [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [
{ "type": "leap", "cooldown": 5, "max_range": 5, "allow_no_target": true },
{ "id": "bio_op_takedown", "cooldown": 20 }
],
"zombify_into": "mon_zeinonychus_bio_op",
"description": "A bipedal dinosaur covered with feathers and crackling bionics. Each foot has a large glowing sickle-like claw.",
"special_when_hit": [ "ZAPBACK", 75 ],
Expand All @@ -264,7 +273,10 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ { "type": "leap", "cooldown": 5, "max_range": 5, "allow_no_target": true }, [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [
{ "type": "leap", "cooldown": 5, "max_range": 5, "allow_no_target": true },
{ "id": "bio_op_takedown", "cooldown": 20 }
],
"description": "A small feathered bipedal dinosaur dotted with crackling bionics. Its small, hooked claws and many sharp teeth glow menacingly.",
"special_when_hit": [ "ZAPBACK", 75 ],
"dissect": "dissect_CBM_raptor"
Expand All @@ -290,7 +302,10 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ { "type": "leap", "cooldown": 5, "max_range": 5, "allow_no_target": true }, [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [
{ "type": "leap", "cooldown": 5, "max_range": 5, "allow_no_target": true },
{ "id": "bio_op_takedown", "cooldown": 20 }
],
"description": "A small feathered bipedal dinosaur dotted with crackling bionics. Each foot has a large glowing sickle-like claw.",
"special_when_hit": [ "ZAPBACK", 75 ],
"dissect": "dissect_CBM_raptor"
Expand All @@ -316,7 +331,7 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"description": "A small bipedal dinosaur dotted with crackling bionics with long arms. The sharp teeth glow menacingly",
"special_when_hit": [ "ZAPBACK", 75 ],
"dissect": "dissect_CBM_DINO"
Expand All @@ -343,7 +358,7 @@
"vision_day": 100,
"luminance": 4,
"special_attacks": [
[ "BIO_OP_TAKEDOWN", 20 ],
{ "id": "bio_op_takedown", "cooldown": 20 },
{ "id": "stomp_DinoMod", "cooldown": 10, "damage_max_instance": [ { "damage_type": "bash", "amount": 12 } ] },
[ "tailsmash_DinoMod", 30 ],
[ "EAT_CROP", 5 ]
Expand Down Expand Up @@ -374,7 +389,7 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"description": "A long-necked bipedal dinosaur dotted with crackling bionics with long legs and short arms. Its hooked beak glows menacingly.",
"special_when_hit": [ "ZAPBACK", 75 ],
"dissect": "dissect_CBM_DINO"
Expand All @@ -400,7 +415,7 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"description": "A small feathered bipedal dinosaur dotted with crackling bionics and sporting a round hard-looking domed head. Its curved claws glow menacingly.",
"special_when_hit": [ "ZAPBACK", 75 ],
"dissect": "dissect_CBM_DINO"
Expand All @@ -426,7 +441,7 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"zombify_into": "mon_zachycephalosaurus_bio_op",
"description": "A feathered bipedal dinosaur dotted with crackling bionics and sporting a round hard-looking domed head. Its curved claws glow menacingly.",
"special_when_hit": [ "ZAPBACK", 75 ],
Expand All @@ -453,7 +468,7 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"zombify_into": "mon_zachycephalosaurus_bio_op",
"description": "A small four legged dinosaur dotted with crackling bionics with a glowing beak and small horns",
"special_when_hit": [ "ZAPBACK", 75 ],
Expand All @@ -480,7 +495,7 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"zombify_into": "mon_zriceratops_bio_op",
"description": "A massive three-horned four-legged dinosaur dotted with crackling bionics. The horns glow menacingly.",
"special_when_hit": [ "ZAPBACK", 75 ],
Expand All @@ -507,7 +522,7 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"description": "A small feathered bipedal dinosaur dotted with crackling bionics. The tiny claws glow menacingly.",
"special_when_hit": [ "ZAPBACK", 75 ],
"dissect": "dissect_CBM_DINO"
Expand All @@ -533,7 +548,7 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"description": "A small feathered bipedal dinosaur dotted with crackling bionics. The claws glow menacingly.",
"special_when_hit": [ "ZAPBACK", 75 ],
"dissect": "dissect_CBM_DINO"
Expand All @@ -559,7 +574,7 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 100,
"luminance": 4,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"description": "A feathered flying reptile with short wings dotted with crackling bionics and a colorful glowing beak.",
"special_when_hit": [ "ZAPBACK", 75 ],
"dissect": "dissect_CBM_DINO"
Expand Down
17 changes: 10 additions & 7 deletions data/mods/DinoMod/monsters/zed-dinosaur_CBM.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"luminance": 1,
"starting_ammo": { "battery": 10 },
"special_attacks": [
[ "BIO_OP_TAKEDOWN", 20 ],
{ "id": "bio_op_takedown", "cooldown": 20 },
{
"type": "gun",
"cooldown": 20,
Expand Down Expand Up @@ -70,7 +70,7 @@
[ "scratch", 10 ],
[ "GRAB", 7 ],
{ "type": "bite", "cooldown": 5 },
[ "BIO_OP_TAKEDOWN", 20 ],
{ "id": "bio_op_takedown", "cooldown": 20 },
{ "type": "spell", "spell_data": { "id": "CBM_TRex_recording" }, "cooldown": 1600 }
],
"description": "The shuffling corpse of a bipedal dinosaur dotted with crackling bionics, tattered feathers, and black putrid liquid with glowing curved claws.",
Expand All @@ -90,7 +90,7 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 50,
"luminance": 4,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"description": "The shuffling corpse of a bipedal dinosaur dotted with crackling bionics, tattered feathers, and black putrid liquid with glowing curved claws.",
"special_when_hit": [ "ZAPBACK", 75 ],
"upgrades": { },
Expand All @@ -108,7 +108,10 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 50,
"luminance": 4,
"special_attacks": [ { "type": "leap", "cooldown": 5, "max_range": 5, "allow_no_target": true }, [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [
{ "type": "leap", "cooldown": 5, "max_range": 5, "allow_no_target": true },
{ "id": "bio_op_takedown", "cooldown": 20 }
],
"description": "A bipedal dinosaur covered with tattered feathers, black goo, and crackling bionics. Each foot has a large glowing sickle-like claw.",
"special_when_hit": [ "ZAPBACK", 75 ],
"upgrades": { },
Expand All @@ -127,7 +130,7 @@
"vision_day": 50,
"luminance": 4,
"special_attacks": [
[ "BIO_OP_TAKEDOWN", 20 ],
{ "id": "bio_op_takedown", "cooldown": 20 },
{ "id": "slam", "cooldown": 10, "damage_max_instance": [ { "damage_type": "bash", "amount": 12 } ] },
[ "tailsmash_DinoMod", 30 ]
],
Expand All @@ -148,7 +151,7 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 50,
"luminance": 4,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"description": "The shuffling corpse of a bipedal dinosaur with a round hard-looking domed head. The body is dotted with crackling bionics, tattered feathers, and black putrid liquid and carries glowing, curved claws.",
"special_when_hit": [ "ZAPBACK", 75 ],
"upgrades": { },
Expand All @@ -166,7 +169,7 @@
"melee_damage": [ { "damage_type": "electric", "amount": 4 } ],
"vision_day": 50,
"luminance": 4,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 } ],
"description": "A massive shambling rhino-like dinosaur corpse dotted with crackling bionics with a bony crest and three wicked looking glowing horns. Its black eyes ooze like tears.",
"special_when_hit": [ "ZAPBACK", 75 ],
"upgrades": { },
Expand Down
4 changes: 2 additions & 2 deletions data/mods/DinoMod/monsters/zinosaur_upgrade.json
Original file line number Diff line number Diff line change
Expand Up @@ -1999,7 +1999,7 @@
"speed": 60,
"attack_cost": 60,
"hp": 365,
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ], [ "RANGED_PULL", 20 ], [ "GRAB_DRAG", 10 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 }, [ "RANGED_PULL", 20 ], [ "GRAB_DRAG", 10 ] ],
"burn_into": "mon_ziats_scorched",
"fungalize_into": "mon_ziats_fungus",
"categories": [ "DINOSAUR" ]
Expand Down Expand Up @@ -3134,7 +3134,7 @@
"melee_dice": 3,
"melee_dice_sides": 5,
"melee_damage": [ { "damage_type": "cut", "amount": 6 } ],
"special_attacks": [ [ "BIO_OP_TAKEDOWN", 20 ], [ "RANGED_PULL", 20 ], [ "GRAB_DRAG", 10 ] ],
"special_attacks": [ { "id": "bio_op_takedown", "cooldown": 20 }, [ "RANGED_PULL", 20 ], [ "GRAB_DRAG", 10 ] ],
"upgrades": { "half_life": 15, "into": "mon_sallosaurus_brute" }
},
{
Expand Down

0 comments on commit 5a838b3

Please sign in to comment.