mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-30 12:13:02 +00:00
This commit removes code/defines/obj.dm and code/defines/obj/weapon.dm. These files were only kept for legacy compatibility and do not fit into the tree system at all. It doesn't even make sense since the base defines are all that were in these, the actual code for the items was in the right file. Any new ports that use this file on a different codebase should be sorted into the tree system anyways, new files if necessary. A giant defines file is just wasting space and searching effort.
48 lines
1.4 KiB
Plaintext
48 lines
1.4 KiB
Plaintext
/obj/item/weapon/holosign_creator
|
|
name = "holographic sign projector"
|
|
desc = "A handy-dandy hologaphic projector that displays a janitorial sign."
|
|
icon = 'icons/obj/janitor.dmi'
|
|
icon_state = "signmaker"
|
|
item_state = "electronic"
|
|
force = 5
|
|
w_class = 2
|
|
throwforce = 0
|
|
throw_speed = 3
|
|
throw_range = 7
|
|
origin_tech = "programming=3"
|
|
var/list/signs = list()
|
|
var/max_signs = 10
|
|
|
|
/obj/item/weapon/holosign_creator/afterattack(atom/target, mob/user, flag)
|
|
if(flag)
|
|
var/turf/T = get_turf(target)
|
|
var/obj/effect/overlay/holograph/H = locate() in T
|
|
if(H)
|
|
user << "<span class='notice'>You use [src] to destroy [H].</span>"
|
|
signs -= H
|
|
qdel(H)
|
|
else
|
|
if(signs.len < max_signs)
|
|
H = new(get_turf(target))
|
|
signs += H
|
|
user << "<span class='notice'>You create \a [H] with [src].</span>"
|
|
else
|
|
user << "<span class='notice'>[src] is projecting at max capacity!</span>"
|
|
|
|
/obj/item/weapon/holosign_creator/attack(mob/living/carbon/human/M, mob/user)
|
|
return
|
|
|
|
/obj/item/weapon/holosign_creator/attack_self(mob/user)
|
|
if(signs.len)
|
|
var/list/L = signs.Copy()
|
|
for(var/sign in L)
|
|
qdel(sign)
|
|
signs -= sign
|
|
user << "<span class='notice'>You clear all active holograms.</span>"
|
|
|
|
/obj/effect/overlay/holograph
|
|
name = "wet floor sign"
|
|
desc = "The words flicker as if they mean nothing."
|
|
icon = 'icons/obj/janitor.dmi'
|
|
icon_state = "holosign"
|
|
anchored = 1 |