Can't pry tiles with a crowbar while using harm intent (#84)
* fix * yah * ok then * sure
This commit is contained in:
@@ -147,11 +147,14 @@ var/list/icons_to_ignore_at_floor_init = list("damaged1","damaged2","damaged3","
|
||||
burnt = 0
|
||||
user << "<span class='danger'>You remove the broken plating.</span>"
|
||||
else
|
||||
if(istype(src, /turf/open/floor/wood))
|
||||
user << "<span class='danger'>You forcefully pry off the planks, destroying them in the process.</span>"
|
||||
if (user.a_intent != "harm")
|
||||
if(istype(src, /turf/open/floor/wood))
|
||||
user << "<span class='danger'>You forcefully pry off [src.name], destroying it in the process.</span>"
|
||||
else
|
||||
user << "<span class='danger'>You remove [src.name].</span>"
|
||||
builtin_tile.loc = src
|
||||
else
|
||||
user << "<span class='danger'>You remove the floor tile.</span>"
|
||||
builtin_tile.loc = src
|
||||
return
|
||||
make_plating()
|
||||
playsound(src, 'sound/items/Crowbar.ogg', 80, 1)
|
||||
return 1
|
||||
@@ -186,4 +189,4 @@ var/list/icons_to_ignore_at_floor_init = list("damaged1","damaged2","damaged3","
|
||||
|
||||
/turf/open/floor/initialize()
|
||||
..()
|
||||
MakeDirty()
|
||||
MakeDirty()
|
||||
|
||||
Reference in New Issue
Block a user