Revert "Merge pull request #16520 from SabreML/fix-bundle-4"

This reverts commit 9a62622fbc, reversing
changes made to 841ad0f1fd.
This commit is contained in:
AffectedArc07
2021-09-07 16:16:40 +01:00
parent cb942efdaf
commit b0e9db64bd
24 changed files with 90 additions and 103 deletions
+38 -26
View File
@@ -1,15 +1,18 @@
/obj/structure/sign
icon = 'icons/obj/decals.dmi'
anchored = TRUE
layer = NOT_HIGH_OBJ_LAYER
anchored = 1
opacity = 0
density = 0
layer = 3.5
max_integrity = 100
armor = list("melee" = 50, "bullet" = 0, "laser" = 0, "energy" = 0, "bomb" = 0, "bio" = 0, "rad" = 0, "fire" = 50, "acid" = 50)
flags_2 = RAD_PROTECT_CONTENTS_2 | RAD_NO_CONTAMINATE_2
/obj/structure/sign/play_attack_sound(damage_amount, damage_type = BRUTE, damage_flag = 0)
switch(damage_type)
if(BRUTE)
if(damage_amount)
playsound(loc, 'sound/weapons/slash.ogg', 80, TRUE)
playsound(src.loc, 'sound/weapons/slash.ogg', 80, TRUE)
else
playsound(loc, 'sound/weapons/tap.ogg', 50, TRUE)
if(BURN)
@@ -22,41 +25,50 @@
if(!I.use_tool(src, user, 0, volume = I.tool_volume))
return
to_chat(user, "You unfasten the sign with [I].")
var/obj/item/sign/S = new(get_turf(user)) // This is bad
var/obj/item/sign/S = new(src.loc)
S.name = name
S.desc = desc
S.icon_state = icon_state
//var/icon/I = icon('icons/obj/decals.dmi', icon_state)
//S.icon = I.Scale(24, 24)
S.sign_state = icon_state
qdel(src)
/obj/item/sign
name = "sign"
desc = ""
icon = 'icons/obj/decals.dmi'
w_class = WEIGHT_CLASS_NORMAL
resistance_flags = FLAMMABLE
var/sign_state = ""
/obj/item/sign/screwdriver_act(mob/living/user, obj/item/I)
. = TRUE
var/direction = input("In which direction?", "Select direction.") as null|anything in list("North", "South", "East", "West")
if(!direction || QDELETED(src) || !in_range(src, user))
return
if(!I.use_tool(src, user, 0, volume = I.tool_volume))
return
var/obj/structure/sign/S = new(get_turf(src)) // This is also bad
switch(direction)
if("North")
S.pixel_y = 32
if("South")
S.pixel_y = -32
if("East")
S.pixel_x = 32
if("West")
S.pixel_x = -32
S.name = name
S.desc = desc
S.icon_state = icon_state
to_chat(user, "<span class='notice'>You fasten [src] with [I].</span>")
qdel(src)
/obj/item/sign/attackby(obj/item/tool as obj, mob/user as mob) //construction
if(istype(tool, /obj/item/screwdriver) && isturf(user.loc))
var/direction = input("In which direction?", "Select direction.") in list("North", "East", "South", "West", "Cancel")
if(direction == "Cancel")
return
if(QDELETED(src))
return
var/obj/structure/sign/S = new(user.loc)
switch(direction)
if("North")
S.pixel_y = 32
if("East")
S.pixel_x = 32
if("South")
S.pixel_y = -32
if("West")
S.pixel_x = -32
else
return
S.name = name
S.desc = desc
S.icon_state = sign_state
to_chat(user, "You fasten \the [S] with your [tool].")
qdel(src)
else
return ..()
/obj/structure/sign/double/map
name = "station map"