mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com> Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: CHOMPStation2 <chompsation2@gmail.com> Co-authored-by: Raeschen <rycoop29@gmail.com> Co-authored-by: Changelogs <action@github.com> Co-authored-by: Aroliacue <96730930+Aroliacue@users.noreply.github.com> Co-authored-by: Eli <fracshun@gmail.com> Co-authored-by: tacoguy7765093 <karokaromaro@gmail.com> Co-authored-by: Nadyr <41974248+Darlantanis@users.noreply.github.com> Co-authored-by: TheGreatKitsune <88862343+TheGreatKitsune@users.noreply.github.com> Co-authored-by: Missile597 <150307788+Missile597@users.noreply.github.com>
25 lines
859 B
Plaintext
25 lines
859 B
Plaintext
//Dance pole
|
|
/obj/structure/dancepole
|
|
name = "dance pole"
|
|
desc = "Engineered for your entertainment"
|
|
icon = 'icons/obj/objects_vr.dmi'
|
|
icon_state = "dancepole"
|
|
density = FALSE
|
|
anchored = TRUE
|
|
|
|
/obj/structure/dancepole/attackby(var/obj/item/O as obj, var/mob/user as mob)
|
|
if(O.has_tool_quality(TOOL_SCREWDRIVER))
|
|
anchored = !anchored
|
|
playsound(src, O.usesound, 50, 1)
|
|
if(anchored)
|
|
to_chat(user, span_blue("You secure \the [src]."))
|
|
else
|
|
to_chat(user, span_blue("You unsecure \the [src]."))
|
|
if(O.has_tool_quality(TOOL_WRENCH))
|
|
playsound(src, O.usesound, 50, 1)
|
|
to_chat(user, "<span class='notice'>Now disassembling \the [src]...</span>")
|
|
if(do_after(user, 30 * O.toolspeed))
|
|
if(!src) return
|
|
to_chat(user, "<span class='notice'>You dissasembled \the [src]!</span>")
|
|
new /obj/item/stack/material/steel(src.loc, 1)
|
|
qdel(src) |