Skip to content

Commit 93374ff

Browse files
authored
make_plating in floor attackby now uses TRUE define (#8590)
crowbar removal of damaged floor now produces a shard instead of nothing
1 parent ec08c4e commit 93374ff

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

code/game/turfs/simulated/floor_attackby.dm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
if(is_damaged())
129129
if(I.use_tool(user, src, flooring.removal_time, tool_type, FAILCHANCE_VERY_EASY, required_stat = STAT_MEC))
130130
to_chat(user, SPAN_NOTICE("You remove the broken [flooring.descriptor]."))
131-
make_plating()
131+
make_plating(TRUE, null, TRUE)
132132
return
133133
else if(flooring.flags & TURF_IS_FRAGILE)
134134
if(I.use_tool(user, src, flooring.removal_time, tool_type, FAILCHANCE_VERY_EASY, required_stat = STAT_MEC))
@@ -138,29 +138,29 @@
138138
else if(flooring.flags & TURF_REMOVE_CROWBAR)
139139
if(I.use_tool(user, src, flooring.removal_time, tool_type, FAILCHANCE_VERY_EASY, required_stat = STAT_MEC))
140140
to_chat(user, SPAN_NOTICE("You lever off the [flooring.descriptor]."))
141-
make_plating(1)
141+
make_plating(TRUE)
142142
return
143143
return
144144

145145
if(QUALITY_SCREW_DRIVING)
146146
if((!(is_damaged()) && !is_plating()) || flooring.flags & TURF_REMOVE_SCREWDRIVER)
147147
if(I.use_tool(user, src, flooring.removal_time*1.5, tool_type, FAILCHANCE_VERY_EASY, required_stat = STAT_MEC))
148148
to_chat(user, SPAN_NOTICE("You unscrew and remove the [flooring.descriptor]."))
149-
make_plating(1)
149+
make_plating(TRUE)
150150
return
151151

152152
if(QUALITY_BOLT_TURNING)
153153
if(flooring.flags & TURF_REMOVE_WRENCH)
154154
if(I.use_tool(user, src, flooring.removal_time, tool_type, FAILCHANCE_NORMAL, required_stat = STAT_MEC))
155155
to_chat(user, SPAN_NOTICE("You unwrench and remove the [flooring.descriptor]."))
156-
make_plating(1)
156+
make_plating(TRUE)
157157
return
158158

159159
if(QUALITY_SHOVELING)
160160
if(flooring.flags & TURF_REMOVE_SHOVEL)
161161
if(I.use_tool(user, src, flooring.removal_time, tool_type, FAILCHANCE_VERY_EASY, required_stat = STAT_MEC))
162162
to_chat(user, SPAN_NOTICE("You shovel off the [flooring.descriptor]."))
163-
make_plating(1)
163+
make_plating(TRUE)
164164
return
165165

166166
if(QUALITY_WELDING)
@@ -179,7 +179,7 @@
179179
to_chat(user, SPAN_NOTICE("You start cutting through the [flooring.descriptor]."))
180180
if(I.use_tool(user, src, flooring.removal_time, tool_type, FAILCHANCE_NORMAL, required_stat = STAT_MEC))
181181
to_chat(user, SPAN_NOTICE("You cut through and remove the [flooring.descriptor]."))
182-
make_plating(1)
182+
make_plating(TRUE)
183183

184184
if(ABORT_CHECK)
185185
return

0 commit comments

Comments
 (0)