Moved janitorial sign in a new weapons/miscellaneous.dm

Made holosign_creator/afterattack() a bit better.
Fixed merge conflict fixing error.
Fixes typos in holosign_creator.dm
This commit is contained in:
phil235
2016-02-22 01:44:53 +01:00
parent 2ec892a1fc
commit 54db9ded4d
4 changed files with 20 additions and 23 deletions
@@ -1,6 +1,6 @@
/obj/item/weapon/holosign_creator
name = "holographic sign projector"
desc = "A handy-dandy hologaphic projector that displays a janitorial sign."
desc = "A handy-dandy holographic projector that displays a janitorial sign."
icon = 'icons/obj/device.dmi'
icon_state = "signmaker"
item_state = "electronic"
@@ -28,10 +28,7 @@
signs.Remove(H)
qdel(H)
else
if(!T.density) //can't put holograms on a tile that has dense stuff
for(var/atom/movable/AM in T)
if(AM.density)
return
if(!is_blocked_turf(T)) //can't put holograms on a tile that has dense stuff
if(holocreator_busy)
user << "<span class='notice'>[src] is busy creating a hologram.</span>"
return
@@ -43,11 +40,10 @@
holocreator_busy = 0
return
holocreator_busy = 0
if(signs.len >= max_signs || T.density)
if(signs.len >= max_signs)
return
if(is_blocked_turf(T)) //don't try to sneak dense stuff on our tile during the wait.
return
for(var/atom/movable/AM in T) //don't try to sneak dense stuff on our tile during the wait.
if(AM.density)
return
H = new holosign_type(get_turf(target))
signs += H
user << "<span class='notice'>You create \a [H] with [src].</span>"
@@ -68,7 +64,7 @@
/obj/item/weapon/holosign_creator/security
name = "security holobarrier projector"
desc = "A hologaphic projector that creates holographic security barriers."
desc = "A holographic projector that creates holographic security barriers."
icon_state = "signmaker_sec"
holosign_type = /obj/effect/overlay/holograph/barrier
creation_time = 30
@@ -76,7 +72,7 @@
/obj/item/weapon/holosign_creator/engineering
name = "engineering holobarrier projector"
desc = "A hologaphic projector that creates holographic engineering barriers."
desc = "A holographic projector that creates holographic engineering barriers."
icon_state = "signmaker_engi"
holosign_type = /obj/effect/overlay/holograph/barrier/engineering
creation_time = 30
@@ -175,15 +171,3 @@
/obj/effect/overlay/holograph/barrier/engineering
icon_state = "holosign_engi"
/obj/item/weapon/caution
desc = "Caution! Wet Floor!"
name = "wet floor sign"
icon = 'icons/obj/janitor.dmi'
icon_state = "caution"
force = 1
throwforce = 3
throw_speed = 2
throw_range = 5
w_class = 2
attack_verb = list("warned", "cautioned", "smashed")
@@ -0,0 +1,12 @@
/obj/item/weapon/caution
desc = "Caution! Wet Floor!"
name = "wet floor sign"
icon = 'icons/obj/janitor.dmi'
icon_state = "caution"
force = 1
throwforce = 3
throw_speed = 2
throw_range = 5
w_class = 2
attack_verb = list("warned", "cautioned", "smashed")
Binary file not shown.

Before

Width:  |  Height:  |  Size: 382 KiB

After

Width:  |  Height:  |  Size: 382 KiB

+1
View File
@@ -603,6 +603,7 @@
#include "code\game\objects\items\weapons\holy_weapons.dm"
#include "code\game\objects\items\weapons\kitchen.dm"
#include "code\game\objects\items\weapons\manuals.dm"
#include "code\game\objects\items\weapons\miscellaneous.dm"
#include "code\game\objects\items\weapons\mop.dm"
#include "code\game\objects\items\weapons\paint.dm"
#include "code\game\objects\items\weapons\paiwire.dm"