forked from CleverRaven/Cataclysm-DDA
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add some mod compatibility to Defense Mode (CleverRaven#67656)
* Add everything * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Move some stuff to Magiclysm * Move a file to Magiclysm --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
73e0659
commit 1aa594c
Showing
10 changed files
with
470 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[ | ||
{ | ||
"type": "effect_on_condition", | ||
"id": "DEFENSE_MODE_WAVE_SPAWN_DINOS", | ||
"condition": { "math": [ "dinos_allowed", "==", "1" ] }, | ||
"effect": [ | ||
{ | ||
"u_spawn_monster": "GROUP_DINOSAUR_DANGEROUS", | ||
"real_count": { "global_val": "wave_number", "default": 1 }, | ||
"outdoor_only": true, | ||
"group": true, | ||
"min_radius": 20, | ||
"max_radius": 40 | ||
}, | ||
{ | ||
"u_spawn_monster": "GROUP_DINOSAUR_DANGEROUS", | ||
"real_count": { "global_val": "wave_number", "default": 1 }, | ||
"outdoor_only": true, | ||
"group": true, | ||
"min_radius": 20, | ||
"max_radius": 40 | ||
}, | ||
{ | ||
"u_spawn_monster": "GROUP_DINOSAUR_DANGEROUS", | ||
"real_count": { "global_val": "wave_number", "default": 1 }, | ||
"outdoor_only": true, | ||
"group": true, | ||
"min_radius": 20, | ||
"max_radius": 40 | ||
} | ||
], | ||
"false_effect": { "run_eocs": "DEFENSE_MODE_WAVE_SPAWN_FALLBACK" } | ||
} | ||
] |
10 changes: 10 additions & 0 deletions
10
data/mods/Defense_Mode/mod_interactions/DinoMod/species.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[ | ||
{ | ||
"type": "SPECIES", | ||
"id": "DINOSAUR", | ||
"fear_triggers": [ "FIRE" ], | ||
"flags": [ "ALL_SEEING", "NEMESIS" ], | ||
"bleeds": "fd_blood", | ||
"description": "a dinosaur" | ||
} | ||
] |
130 changes: 130 additions & 0 deletions
130
data/mods/Defense_Mode/mod_interactions/Magiclysm/eocs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
[ | ||
{ | ||
"type": "effect_on_condition", | ||
"id": "DEFENSE_MODE_WAVE_SPAWN_LIZARDFOLK", | ||
"condition": { "math": [ "lizardfolk_allowed", "==", "1" ] }, | ||
"effect": [ | ||
{ | ||
"u_spawn_monster": "GROUP_LIZARDFOLK_DM", | ||
"real_count": { "global_val": "wave_number", "default": 1 }, | ||
"outdoor_only": true, | ||
"group": true, | ||
"min_radius": 20, | ||
"max_radius": 40 | ||
}, | ||
{ | ||
"u_spawn_monster": "GROUP_LIZARDFOLK_DM", | ||
"real_count": { "global_val": "wave_number", "default": 1 }, | ||
"outdoor_only": true, | ||
"group": true, | ||
"min_radius": 20, | ||
"max_radius": 40 | ||
}, | ||
{ | ||
"u_spawn_monster": "GROUP_LIZARDFOLK_DM", | ||
"real_count": { "global_val": "wave_number", "default": 1 }, | ||
"outdoor_only": true, | ||
"group": true, | ||
"min_radius": 20, | ||
"max_radius": 40 | ||
} | ||
], | ||
"false_effect": { "run_eocs": "DEFENSE_MODE_WAVE_SPAWN_FALLBACK" } | ||
}, | ||
{ | ||
"type": "effect_on_condition", | ||
"id": "DEFENSE_MODE_WAVE_SPAWN_GOLEMS", | ||
"condition": { "math": [ "golems_allowed", "==", "1" ] }, | ||
"effect": [ | ||
{ | ||
"u_spawn_monster": "GROUP_GOLEM_DM", | ||
"real_count": { "global_val": "wave_number", "default": 1 }, | ||
"outdoor_only": true, | ||
"group": true, | ||
"min_radius": 20, | ||
"max_radius": 40 | ||
}, | ||
{ | ||
"u_spawn_monster": "GROUP_GOLEM_DM", | ||
"real_count": { "global_val": "wave_number", "default": 1 }, | ||
"outdoor_only": true, | ||
"group": true, | ||
"min_radius": 20, | ||
"max_radius": 40 | ||
}, | ||
{ | ||
"u_spawn_monster": "GROUP_GOLEM_DM", | ||
"real_count": { "global_val": "wave_number", "default": 1 }, | ||
"outdoor_only": true, | ||
"group": true, | ||
"min_radius": 20, | ||
"max_radius": 40 | ||
} | ||
], | ||
"false_effect": { "run_eocs": "DEFENSE_MODE_WAVE_SPAWN_FALLBACK" } | ||
}, | ||
{ | ||
"type": "effect_on_condition", | ||
"id": "DEFENSE_MODE_WAVE_SPAWN_GOBLINS", | ||
"condition": { "math": [ "goblins_allowed", "==", "1" ] }, | ||
"effect": [ | ||
{ | ||
"u_spawn_monster": "GROUP_GOBLIN_STANDARD", | ||
"real_count": { "global_val": "wave_number", "default": 1 }, | ||
"outdoor_only": true, | ||
"group": true, | ||
"min_radius": 20, | ||
"max_radius": 40 | ||
}, | ||
{ | ||
"u_spawn_monster": "GROUP_GOBLIN_STANDARD", | ||
"real_count": { "global_val": "wave_number", "default": 1 }, | ||
"outdoor_only": true, | ||
"group": true, | ||
"min_radius": 20, | ||
"max_radius": 40 | ||
}, | ||
{ | ||
"u_spawn_monster": "GROUP_GOBLIN_STANDARD", | ||
"real_count": { "global_val": "wave_number", "default": 1 }, | ||
"outdoor_only": true, | ||
"group": true, | ||
"min_radius": 20, | ||
"max_radius": 40 | ||
} | ||
], | ||
"false_effect": { "run_eocs": "DEFENSE_MODE_WAVE_SPAWN_FALLBACK" } | ||
}, | ||
{ | ||
"type": "effect_on_condition", | ||
"id": "DEFENSE_MODE_WAVE_SPAWN_ORCS", | ||
"condition": { "math": [ "orcs_allowed", "==", "1" ] }, | ||
"effect": [ | ||
{ | ||
"u_spawn_monster": "GROUP_ORC_DM", | ||
"real_count": { "global_val": "wave_number", "default": 1 }, | ||
"outdoor_only": true, | ||
"group": true, | ||
"min_radius": 20, | ||
"max_radius": 40 | ||
}, | ||
{ | ||
"u_spawn_monster": "GROUP_ORC_DM", | ||
"real_count": { "global_val": "wave_number", "default": 1 }, | ||
"outdoor_only": true, | ||
"group": true, | ||
"min_radius": 20, | ||
"max_radius": 40 | ||
}, | ||
{ | ||
"u_spawn_monster": "GROUP_ORC_DM", | ||
"real_count": { "global_val": "wave_number", "default": 1 }, | ||
"outdoor_only": true, | ||
"group": true, | ||
"min_radius": 20, | ||
"max_radius": 40 | ||
} | ||
], | ||
"false_effect": { "run_eocs": "DEFENSE_MODE_WAVE_SPAWN_FALLBACK" } | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
data/mods/Magiclysm/mod_interactions/Defense_Mode/monstergroups.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
[ | ||
{ | ||
"type": "monstergroup", | ||
"name": "GROUP_LIZARDFOLK_DM", | ||
"monsters": [ | ||
{ "monster": "mon_lizardfolk_warrior_dm", "weight": 900 }, | ||
{ "monster": "mon_lizardfolk_warrior_dm", "weight": 20, "pack_size": [ 2, 4 ] }, | ||
{ "monster": "mon_lizardfolk_hunter_dm", "weight": 30, "cost_multiplier": 4, "pack_size": [ 1, 2 ] }, | ||
{ "monster": "mon_lizardfolk_shaman_dm", "weight": 10, "cost_multiplier": 30 }, | ||
{ "monster": "mon_lizardfolk_chieftan_dm", "weight": 10, "cost_multiplier": 50 } | ||
] | ||
}, | ||
{ | ||
"type": "monstergroup", | ||
"name": "GROUP_GOLEM_DM", | ||
"monsters": [ | ||
{ "monster": "mon_plasticgolem_dm", "weight": 965 }, | ||
{ "monster": "mon_claygolem_dm", "weight": 20 }, | ||
{ "monster": "mon_stonegolem_dm", "weight": 10 }, | ||
{ "monster": "mon_irongolem_dm", "weight": 5 } | ||
] | ||
}, | ||
{ | ||
"type": "monstergroup", | ||
"name": "GROUP_GOBLIN_DM", | ||
"monsters": [ | ||
{ "monster": "mon_goblin_warrior_dm", "weight": 900 }, | ||
{ "monster": "mon_goblin_warrior_dm", "weight": 35, "pack_size": [ 2, 4 ] }, | ||
{ "monster": "mon_goblin_slinger_dm", "weight": 65, "pack_size": [ 2, 4 ] } | ||
] | ||
}, | ||
{ | ||
"type": "monstergroup", | ||
"name": "GROUP_ORC_DM", | ||
"monsters": [ | ||
{ "monster": "mon_orc_warrior_dm", "weight": 960, "cost_multiplier": 5 }, | ||
{ "monster": "mon_orc_archer_dm", "weight": 25, "cost_multiplier": 7 }, | ||
{ "monster": "mon_orc_blood_warrior_dm", "weight": 15, "cost_multiplier": 5 } | ||
] | ||
} | ||
] |
Oops, something went wrong.