mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-24 13:30:42 +01:00
The Epic Construction Update (#5976)
How to build machine blueprints! Use steel sheets like normal, then rotate the frame how you like it using the directional arrow. From here use a Multitool to finalize it and then wire it up like you would before.
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
/obj/item/device/multitool/hacktool/attackby(var/obj/item/W, var/mob/user)
|
||||
if(W.isscrewdriver())
|
||||
in_hack_mode = !in_hack_mode
|
||||
playsound(src.loc, 'sound/items/Screwdriver.ogg', 50, 1)
|
||||
playsound(src.loc, W.usesound, 50, 1)
|
||||
else
|
||||
..()
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
user.visible_message(span("notice", "[user] starts welding the metal shell of [src]."), span("notice", "You start [hacked ? "repairing" : "welding open"] the metal covering of [src]."))
|
||||
playsound(loc, 'sound/items/Welder.ogg', 50, 1)
|
||||
add_overlay("overlay_welding")
|
||||
if (do_after(user, 25))
|
||||
if (do_after(user, 25/I.toolspeed))
|
||||
to_chat(user, span("notice", "You are able to [hacked ? "repair" : "weld through"] the metal shell of [src]."))
|
||||
if (hacked) locked = 1
|
||||
else locked = 0
|
||||
@@ -193,7 +193,7 @@
|
||||
if (2)
|
||||
if (I.isscrewdriver())
|
||||
to_chat(user, span("notice", "You unscrew and remove the wiring cover from \the [src]."))
|
||||
playsound(loc, 'sound/items/Screwdriver.ogg', 50, 1)
|
||||
playsound(loc, I.usesound, 50, 1)
|
||||
setconstructionstate(3)
|
||||
return
|
||||
|
||||
@@ -219,7 +219,7 @@
|
||||
|
||||
if (I.isscrewdriver())
|
||||
to_chat(user, span("notice", "You replace and screw tight the wiring cover from \the [src]."))
|
||||
playsound(loc, 'sound/items/Screwdriver.ogg', 50, 1)
|
||||
playsound(loc, I.usesound, 50, 1)
|
||||
setconstructionstate(2)
|
||||
return
|
||||
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
|
||||
|
||||
/obj/item/device/animaltagger
|
||||
name = "animal tagger"
|
||||
desc = "Used for tagging animals to be identified by a ear tag."
|
||||
icon_state = "tagger0"
|
||||
force = 5.0
|
||||
w_class = 2.0
|
||||
throwforce = 5.0
|
||||
throw_range = 15
|
||||
throw_speed = 3
|
||||
var/animaltag = null
|
||||
|
||||
matter = list(DEFAULT_WALL_MATERIAL = 50,"glass" = 20)
|
||||
|
||||
origin_tech = list(TECH_MAGNET = 2, TECH_ENGINEERING = 1)
|
||||
|
||||
|
||||
/obj/item/device/animaltagger/Destroy()
|
||||
return ..()
|
||||
|
||||
|
||||
/obj/item/device/animaltagger/attack()
|
||||
return
|
||||
|
||||
/obj/item/device/animaltagger/afterattack(atom/A as mob|obj, mob/user as mob)
|
||||
|
||||
if(isanimal(A))
|
||||
A.name = animaltag
|
||||
to_chat(user,"<span class='notice'>You tag the animal as [animaltag].</span>")
|
||||
|
||||
else
|
||||
to_chat(user, "<span class='notice'>You can't tag non animals.</span>")
|
||||
return
|
||||
|
||||
/obj/item/device/animaltagger/attack_self(mob/user as mob)
|
||||
|
||||
var/inputtag = sanitizeSafe(input(user,"Label text?","Set label",""), MAX_NAME_LEN)
|
||||
if(!inputtag || !length(inputtag))
|
||||
to_chat(user, "<span class='notice'>Invalid tag line.</span>")
|
||||
return
|
||||
animaltag = inputtag
|
||||
Reference in New Issue
Block a user