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.
Move traps externs from int to string ids
When loading the game without this content, these will now only give an error on the use of these, instead of at the end data loading for traps. Previously there were performance concerns with this, but this should be fine since CleverRaven#44261 - see CleverRaven#44500. tr_null must remain an int id, as it used in the string to int id conversion. This is fine, as it will always be loaded (it's in data/core). Move the ledge trap over to data/core as well, because everything will need the 'open space' trap.
- Loading branch information
1 parent
518b4fa
commit 8730fc0
Showing
4 changed files
with
62 additions
and
84 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[ | ||
{ | ||
"//": "We're always going to need a 'nothing here' tile, we currently use traps for this.", | ||
"type": "trap", | ||
"id": "tr_ledge", | ||
"name": "ledge", | ||
"color": "i_cyan", | ||
"memorial_male": { "ctxt": "memorial_female", "str": "Fell down a ledge." }, | ||
"memorial_female": { "ctxt": "memorial_female", "str": "Fell down a ledge." }, | ||
"symbol": " ", | ||
"visibility": 0, | ||
"avoidance": 99999, | ||
"difficulty": 99, | ||
"action": "ledge", | ||
"vehicle_data": { "is_falling": 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