mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Removes excess whitespace
This commit is contained in:
@@ -11,15 +11,11 @@
|
||||
var/obj/item/weapon/card/id/ID
|
||||
var/datum/job/wand_access = "Assistant" //This is for access. See access.dm for which jobs give what access. Use "Captain" if you want the wand to work on all doors.
|
||||
|
||||
|
||||
|
||||
/obj/item/weapon/control_wand/New()
|
||||
..()
|
||||
ID = new /obj/item/weapon/card/id
|
||||
ID.access = wand_access.get_access()
|
||||
|
||||
|
||||
|
||||
/obj/item/weapon/control_wand/attack_self(mob/user)
|
||||
switch(mode)
|
||||
if(WAND_OPEN)
|
||||
@@ -34,6 +30,7 @@
|
||||
if(!istype(D))
|
||||
return
|
||||
if(!(D.hasPower()))
|
||||
user << "[D] has no power!"
|
||||
return
|
||||
if(D.check_access(src.ID))
|
||||
switch(mode)
|
||||
@@ -53,8 +50,8 @@
|
||||
else
|
||||
D.emergency = 1
|
||||
D.update_icon()
|
||||
|
||||
|
||||
else
|
||||
user << "Your [src] does not have access to this door."
|
||||
|
||||
/obj/item/weapon/control_wand/captain
|
||||
name = "omni wand"
|
||||
@@ -81,7 +78,6 @@
|
||||
name = "medical control wand"
|
||||
wand_access = "Chief Medical Officer"
|
||||
|
||||
|
||||
#undef WAND_OPEN
|
||||
#undef WAND_BOLT
|
||||
#undef WAND_EMERGENCY
|
||||
Reference in New Issue
Block a user