code folder. 221 files changed wew
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
|
||||
/turf/open/floor/wood/pry_tile(obj/item/C, mob/user, silent = FALSE)
|
||||
var/is_screwdriver = istype(C, /obj/item/screwdriver)
|
||||
playsound(src, C.usesound, 80, 1)
|
||||
C.play_tool_sound(src, 80)
|
||||
return remove_tile(user, silent, make_tile = is_screwdriver)
|
||||
|
||||
/turf/open/floor/wood/remove_tile(mob/user, silent = FALSE, make_tile = TRUE)
|
||||
|
||||
@@ -196,19 +196,14 @@
|
||||
flick_overlay(I, viewing, 8)
|
||||
L.adjustToxLoss(-3, TRUE, TRUE)
|
||||
|
||||
/turf/open/floor/clockwork/attackby(obj/item/I, mob/living/user, params)
|
||||
/turf/open/floor/clockwork/crowbar_act(mob/living/user, obj/item/I)
|
||||
if(baseturfs == type)
|
||||
return
|
||||
if(istype(I, /obj/item/crowbar))
|
||||
user.visible_message("<span class='notice'>[user] begins slowly prying up [src]...</span>", "<span class='notice'>You begin painstakingly prying up [src]...</span>")
|
||||
playsound(src, I.usesound, 20, 1)
|
||||
if(!do_after(user, 70*I.toolspeed, target = src))
|
||||
return 0
|
||||
return TRUE
|
||||
user.visible_message("<span class='notice'>[user] begins slowly prying up [src]...</span>", "<span class='notice'>You begin painstakingly prying up [src]...</span>")
|
||||
if(I.use_tool(src, user, 70, volume=80))
|
||||
user.visible_message("<span class='notice'>[user] pries up [src]!</span>", "<span class='notice'>You pry up [src]!</span>")
|
||||
playsound(src, I.usesound, 80, 1)
|
||||
make_plating()
|
||||
return 1
|
||||
return ..()
|
||||
return TRUE
|
||||
|
||||
/turf/open/floor/clockwork/make_plating()
|
||||
new /obj/item/stack/tile/brass(src)
|
||||
|
||||
@@ -78,15 +78,15 @@
|
||||
playsound(src, 'sound/weapons/genhit.ogg', 50, 1)
|
||||
else
|
||||
to_chat(user, "<span class='warning'>This section is too damaged to support a tile! Use a welder to fix the damage.</span>")
|
||||
else if(istype(C, /obj/item/weldingtool))
|
||||
var/obj/item/weldingtool/welder = C
|
||||
if( welder.isOn() && (broken || burnt) )
|
||||
if(welder.remove_fuel(0,user))
|
||||
to_chat(user, "<span class='danger'>You fix some dents on the broken plating.</span>")
|
||||
playsound(src, welder.usesound, 80, 1)
|
||||
icon_state = icon_plating
|
||||
burnt = 0
|
||||
broken = 0
|
||||
|
||||
/turf/open/floor/plating/welder_act(mob/living/user, obj/item/I)
|
||||
if((broken || burnt) && I.use_tool(src, user, 0, volume=80))
|
||||
to_chat(user, "<span class='danger'>You fix some dents on the broken plating.</span>")
|
||||
icon_state = icon_plating
|
||||
burnt = FALSE
|
||||
broken = FALSE
|
||||
|
||||
return TRUE
|
||||
|
||||
/turf/open/floor/plating/foam
|
||||
name = "metal foam plating"
|
||||
|
||||
@@ -25,18 +25,14 @@
|
||||
..()
|
||||
return //unplateable
|
||||
|
||||
/turf/open/floor/engine/attackby(obj/item/C, mob/user, params)
|
||||
if(!C || !user)
|
||||
return
|
||||
if(istype(C, /obj/item/wrench))
|
||||
to_chat(user, "<span class='notice'>You begin removing rods...</span>")
|
||||
playsound(src, C.usesound, 80, 1)
|
||||
if(do_after(user, 30*C.toolspeed, target = src))
|
||||
if(!istype(src, /turf/open/floor/engine))
|
||||
return
|
||||
new /obj/item/stack/rods(src, 2)
|
||||
ChangeTurf(/turf/open/floor/plating)
|
||||
return
|
||||
/turf/open/floor/engine/wrench_act(mob/living/user, obj/item/I)
|
||||
to_chat(user, "<span class='notice'>You begin removing rods...</span>")
|
||||
if(I.use_tool(src, user, 30, volume=80))
|
||||
if(!istype(src, /turf/open/floor/engine))
|
||||
return TRUE
|
||||
new /obj/item/stack/rods(src, 2)
|
||||
ChangeTurf(/turf/open/floor/plating)
|
||||
return TRUE
|
||||
|
||||
/turf/open/floor/engine/acid_act(acidpwr, acid_volume)
|
||||
acidpwr = min(acidpwr, 50) //we reduce the power so reinf floor never get melted.
|
||||
|
||||
Reference in New Issue
Block a user