-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mapgen: allow placing active bomb items for better craters in Dark Sk…
…ies Above (#48137) * mapgen: allow activated items to be placed on the map Add the new item flag "ACTIVATE_ON_PLACE". Items placed during mapgen with this flag will be activated immediately after they are placed on the map. * Dark Skies Above: use active bombs to create large bomb craters Use the new ACTIVATE_ON_PLACE flag with active bombs with 1 second count-downs in a new map special that randomly wrecks buildings across multiple z-levels. The bombs have max_noise = 0 and explode silently to preserve the avatar's hearing. Co-authored-by: actual-nh <74678550+actual-nh@users.noreply.github.com>
- Loading branch information
1 parent
38d11b8
commit 32ecdad
Showing
7 changed files
with
63 additions
and
2 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
47 changes: 47 additions & 0 deletions
47
data/mods/Dark-Skies-Above/mapgen/map_extras/bombed_crater.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,47 @@ | ||
[ | ||
{ | ||
"id": "tool_dsa_alien_bomb_act", | ||
"type": "TOOL", | ||
"category": "weapons", | ||
"name": { "str": "active alien bomb" }, | ||
"looks_like": "tool_rdx_charge_act", | ||
"description": "This is an alien bomb. It has been activated and will soon explode, delivering its entire destructive power to everything in sight.", | ||
"weight": "4400 g", | ||
"volume": "10 L", | ||
"price": 0, | ||
"to_hit": -5, | ||
"bashing": 20, | ||
"material": [ "steel" ], | ||
"symbol": "(", | ||
"color": "light_red", | ||
"initial_charges": 1, | ||
"max_charges": 1, | ||
"turns_per_charge": 1, | ||
"explode_in_fire": true, | ||
"explosion": { "power": 40000, "max_noise": 0 }, | ||
"use_action": { | ||
"type": "explosion", | ||
"no_deactivate_msg": "You've already activated the bomb - clear the area immediately!", | ||
"explosion": { "power": 40000, "max_noise": 0 } | ||
}, | ||
"flags": [ "BOMB", "TRADER_AVOID" ] | ||
}, | ||
{ | ||
"type": "mapgen", | ||
"method": "json", | ||
"update_mapgen_id": "mx_dsa_bombed_crater", | ||
"object": { | ||
"place_item": [ { "item": "tool_dsa_alien_bomb_act", "x": 12, "y": 12, "amount": 1, "custom-flags": [ "ACTIVATE_ON_PLACE" ] } ] | ||
} | ||
}, | ||
{ | ||
"id": "mx_dsa_bombed_crater", | ||
"type": "map_extra", | ||
"name": { "str": "Bomb Crater" }, | ||
"description": "A bomb crater.", | ||
"generator": { "generator_method": "update_mapgen", "generator_id": "mx_dsa_bombed_crater" }, | ||
"sym": ".", | ||
"color": "brown", | ||
"autonote": true | ||
} | ||
] |
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
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