Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make mansion ferals scenario specific #72695

Merged
merged 13 commits into from
Mar 31, 2024
68 changes: 55 additions & 13 deletions data/json/effects_on_condition/scenario_specific_eocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,27 +52,69 @@
"eoc_type": "SCENARIO_SPECIFIC",
"effect": [
{
"u_spawn_monster": "GROUP_MANSION_ARMORED",
"group": true,
"real_count": 1,
"min_radius": 30,
"max_radius": 45,
"indoor_only": true
"u_location_variable": { "u_val": "mansion_centre" },
"target_params": { "om_terrain": "mansion_+4d", "search_range": 2, "z": -1 },
"min_radius": 0,
"max_radius": 0
},
{ "location_variable_adjust": { "u_val": "mansion_centre" }, "x_adjust": 11, "y_adjust": 11 },
{ "run_eoc_with": "EOC_BANISH_MANSION_MONSTERS", "beta_loc": { "u_val": "mansion_centre" } },
{ "run_eocs": "EOC_SPAWN_MANSION_MONSTERS" },
{ "location_variable_adjust": { "u_val": "mansion_centre" }, "z_adjust": 0, "z_override": true },
{ "run_eoc_with": "EOC_BANISH_MANSION_MONSTERS", "beta_loc": { "u_val": "mansion_centre" } },
{ "run_eocs": "EOC_SPAWN_MANSION_MONSTERS" },
{ "location_variable_adjust": { "u_val": "mansion_centre" }, "z_adjust": 1, "z_override": true },
{ "run_eoc_with": "EOC_BANISH_MANSION_MONSTERS", "beta_loc": { "u_val": "mansion_centre" } },
{ "run_eocs": "EOC_SPAWN_MANSION_MONSTERS" },
{
"u_spawn_monster": "GROUP_MANSION_START",
"u_run_monster_eocs": [ { "id": "EOC_BANISH_MONSTERS_AROUND_PLAYER", "effect": { "run_eocs": "EOC_BANISH_SELF" } } ],
"monster_range": 6
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_BANISH_SELF",
"effect": [ { "u_cast_spell": { "id": "BEGONE_SHADOW" } } ]
},
{
"type": "effect_on_condition",
"id": "EOC_BANISH_MANSION_MONSTERS",
"//": "Banish half the mapgen monsters from the mansion to make room for special scenario ferals",
"effect": [
{
"npc_run_monster_eocs": [
{
"id": "EOC_BANISH_MONSTERS_AROUND_MANSION_CENTER",
"condition": { "math": [ "rand(1)", "==", "0" ] },
"effect": { "run_eocs": "EOC_BANISH_SELF" }
}
],
"monster_range": 36
}
]
},
{
"type": "effect_on_condition",
"id": "EOC_SPAWN_MANSION_MONSTERS",
"//": "Spawn special scenario ferals out from the center of the mansion",
"effect": [
{
"u_spawn_monster": "GROUP_MANSION_ARMORED",
"group": true,
"real_count": 2,
"min_radius": 20,
"max_radius": 35,
"real_count": 1,
"min_radius": 0,
"max_radius": 36,
"target_var": { "u_val": "mansion_centre" },
"indoor_only": true
},
{
"u_spawn_monster": "GROUP_MANSION_START",
"group": true,
"real_count": 2,
"min_radius": 25,
"max_radius": 40,
"real_count": 20,
"min_radius": 0,
"max_radius": 36,
"target_var": { "u_val": "mansion_centre" },
"indoor_only": true
}
]
Expand Down
Loading
Loading