mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-11 10:22:13 +00:00
Fixed gibtonite instantly exploding on pick mining
This commit is contained in:
@@ -65,13 +65,16 @@
|
|||||||
|
|
||||||
if(I.use_tool(src, user, 40, volume=50))
|
if(I.use_tool(src, user, 40, volume=50))
|
||||||
var/range = I.digrange //Store the current digrange so people don't cheese digspeed swapping for faster mining
|
var/range = I.digrange //Store the current digrange so people don't cheese digspeed swapping for faster mining
|
||||||
|
var/list/dug_tiles = list()
|
||||||
if(ismineralturf(src))
|
if(ismineralturf(src))
|
||||||
if(I.digrange > 0)
|
if(I.digrange > 0)
|
||||||
for(var/turf/closed/mineral/M in range(user,range))
|
for(var/turf/closed/mineral/M in range(user,range))
|
||||||
if(get_dir(user,M)&stored_dir)
|
if(get_dir(user,M)&stored_dir)
|
||||||
M.gets_drilled()
|
M.gets_drilled(user)
|
||||||
|
dug_tiles += M
|
||||||
to_chat(user, "<span class='notice'>You finish cutting into the rock.</span>")
|
to_chat(user, "<span class='notice'>You finish cutting into the rock.</span>")
|
||||||
gets_drilled(user)
|
if(!(src in dug_tiles))
|
||||||
|
gets_drilled(user)
|
||||||
SSblackbox.record_feedback("tally", "pick_used_mining", 1, I.type)
|
SSblackbox.record_feedback("tally", "pick_used_mining", 1, I.type)
|
||||||
else
|
else
|
||||||
return attack_hand(user)
|
return attack_hand(user)
|
||||||
@@ -615,4 +618,4 @@
|
|||||||
turf_type = /turf/open/floor/plating/asteroid/basalt/lava_land_surface
|
turf_type = /turf/open/floor/plating/asteroid/basalt/lava_land_surface
|
||||||
baseturfs = /turf/open/floor/plating/asteroid/basalt/lava_land_surface
|
baseturfs = /turf/open/floor/plating/asteroid/basalt/lava_land_surface
|
||||||
initial_gas_mix = LAVALAND_DEFAULT_ATMOS
|
initial_gas_mix = LAVALAND_DEFAULT_ATMOS
|
||||||
defer_change = 1
|
defer_change = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user