Skip to content

Commit b69f4b0

Browse files
dgobiI-am-Erkanothersimulacrum
authored
Add small sludge trail to pupating zombies (CleverRaven#50079)
* added small MF_SMALLSLUDGETRAIL to pupating zombies * Update src/monmove.cpp Co-authored-by: anothersimulacrum <[email protected]> Co-authored-by: I-am-Erk <[email protected]> Co-authored-by: anothersimulacrum <[email protected]>
1 parent 42aef0c commit b69f4b0

File tree

5 files changed

+15
-6
lines changed

5 files changed

+15
-6
lines changed

data/json/monsters/zed-pupating.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"bleed_rate": 50,
1313
"special_attacks": [ { "type": "bite", "cooldown": 3 } ],
1414
"regenerates": 10,
15-
"extend": { "flags": [ "SLUDGETRAIL", "SLUDGEPROOF" ] }
15+
"extend": { "flags": [ "SMALLSLUDGETRAIL", "SLUDGEPROOF" ] }
1616
},
1717
{
1818
"id": "mon_zombie_crawler_pupa",
@@ -44,7 +44,7 @@
4444
"bleed_rate": 50,
4545
"special_attacks": [ { "type": "bite", "cooldown": 3 } ],
4646
"regenerates": 10,
47-
"extend": { "flags": [ "SLUDGETRAIL", "SLUDGEPROOF" ] }
47+
"extend": { "flags": [ "SMALLSLUDGETRAIL", "SLUDGEPROOF" ] }
4848
},
4949
{
5050
"id": "mon_zombie_pupa",
@@ -73,7 +73,7 @@
7373
"speed": 95,
7474
"regenerates": 10,
7575
"upgrades": { "half_life": 21, "into_group": "GROUP_BRUTE_PUPA" },
76-
"extend": { "flags": [ "SLUDGETRAIL", "SLUDGEPROOF" ] }
76+
"extend": { "flags": [ "SMALLSLUDGETRAIL", "SLUDGEPROOF" ] }
7777
},
7878
{
7979
"id": "mon_brute_pupa",
@@ -137,7 +137,7 @@
137137
"REVIVES",
138138
"PUSH_MON",
139139
"PUSH_VEH",
140-
"SLUDGETRAIL",
140+
"SMALLSLUDGETRAIL",
141141
"SLUDGEPROOF",
142142
"FILTHY"
143143
]
@@ -195,7 +195,7 @@
195195
"REVIVES",
196196
"PUSH_MON",
197197
"PUSH_VEH",
198-
"SLUDGETRAIL",
198+
"SMALLSLUDGETRAIL",
199199
"SLUDGEPROOF",
200200
"FILTHY"
201201
]
@@ -215,7 +215,7 @@
215215
"bleed_rate": 0,
216216
"vision_day": 8,
217217
"vision_night": 15,
218-
"extend": { "flags": [ "SLUDGETRAIL", "SLUDGEPROOF", "NIGHT_INVISIBILITY" ] }
218+
"extend": { "flags": [ "SMALLSLUDGETRAIL", "SLUDGEPROOF", "NIGHT_INVISIBILITY" ] }
219219
},
220220
{
221221
"id": "mon_zombie_pupa_shady",

doc/JSON_FLAGS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -971,6 +971,7 @@ Other monster flags.
971971
- ```SHEARABLE``` This monster can be sheared for wool.
972972
- ```SLUDGEPROOF``` Ignores the effect of sludge trails.
973973
- ```SLUDGETRAIL``` Causes the monster to leave a sludge trap trail when moving.
974+
- ```SMALLSLUDGETRAIL``` Causes the monster to occasionally leave a 1-tile sludge trail when moving.
974975
- ```SMELLS``` It can smell you.
975976
- ```STUMBLES``` Stumbles in its movement.
976977
- ```SUNDEATH``` Dies in full sunlight.

src/monmove.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,6 +1755,12 @@ bool monster::move_to( const tripoint &p, bool force, bool step_on_critter,
17551755
}
17561756
}
17571757

1758+
if( has_flag ( MF_SMALLSLUDGETRAIL ) ) {
1759+
if( one_in( 2 ) ) {
1760+
here.add_field( pos(), fd_sludge, 1 );
1761+
}
1762+
}
1763+
17581764
if( has_flag( MF_DRIPS_NAPALM ) ) {
17591765
if( one_in( 10 ) ) {
17601766
// if it has more napalm, drop some and reduce ammo in tank

src/monstergenerator.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ std::string enum_to_string<m_flag>( m_flag data )
130130
case MF_FIREPROOF: return "FIREPROOF";
131131
case MF_SLUDGEPROOF: return "SLUDGEPROOF";
132132
case MF_SLUDGETRAIL: return "SLUDGETRAIL";
133+
case MF_SMALLSLUDGETRAIL: return "SMALLSLUDGETRAIL";
133134
case MF_COLDPROOF: return "COLDPROOF";
134135
case MF_FIREY: return "FIREY";
135136
case MF_QUEEN: return "QUEEN";

src/mtype.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ enum m_flag : int {
100100
MF_FIREPROOF, // Immune to fire
101101
MF_SLUDGEPROOF, // Ignores the effect of sludge trails
102102
MF_SLUDGETRAIL, // Causes monster to leave a sludge trap trail when moving
103+
MF_SMALLSLUDGETRAIL, // Causes monster to leave a low intensity, 1 tile sludge pool approximately every other tile when moving
103104
MF_COLDPROOF, // Immune to cold damage
104105
MF_FIREY, // Burns stuff and is immune to fire
105106
MF_QUEEN, // When it dies, local populations start to die off too

0 commit comments

Comments
 (0)