mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-27 10:41:42 +00:00
Nodrak: - Bags of Holding can no longer be brought to the clown planet - Made a quick new sprite for broken telescreens - Removed the clusterbang from the HoS safe. It is currently bugged and not in presentable condition, however, someone is working on it. - Added a machine check to shift+click. Partial fixes issue 534 (see Zek's stuff for more.) I'm not really sure of a better way to fix this that wouldn't involve a whole pile of coding... - Cigarettes now evenly distribute chemicals injected into a pack of cigarettes. Partial fix for issue 548 (see Zek's stuff for more.) Commit for Zekkeit/39kk9t - The gibber now provides attack logs of who the mob gibbed, or who the mob was gibbed by. How can you tell who a mob was gibbed by when the mob gets destroyed? Well read the next enhancement! - Attack logs now transfer to the ghost of the mob who dies - You can no longer survive cold by cooling yourself down before jumping into space. Fixes issue 206. - Ghost() is now a client proc, not a mob proc. Fixes issue 442 - Fix for issue 493. - Added a range check to shift+click. Fixes issue 534. - Cigarette packs are now limited to (15*number of cigarettes) units of reagents. Fixes Issue 548. - Added organ inaccuracy to guns. This means, for example, that you wont hit the mob's chest with 100% accuracy. You may end up hitting the mob's arm, or head instead. Accuracy is directly related to distance. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4022 316c924e-a436-60f5-8080-3fe189b3f50e
89 lines
2.7 KiB
Plaintext
89 lines
2.7 KiB
Plaintext
//This file was auto-corrected by findeclaration.exe on 25.5.2012 20:42:32
|
|
|
|
/obj/item/weapon/storage/lockbox
|
|
name = "lockbox"
|
|
desc = "A locked box."
|
|
icon_state = "lockbox+l"
|
|
item_state = "syringe_kit"
|
|
w_class = 4
|
|
max_w_class = 3
|
|
max_combined_w_class = 14 //The sum of the w_classes of all the items in this storage item.
|
|
storage_slots = 4
|
|
req_access = list(access_armory)
|
|
var/locked = 1
|
|
var/broken = 0
|
|
var/icon_locked = "lockbox+l"
|
|
var/icon_closed = "lockbox"
|
|
var/icon_broken = "lockbox+b"
|
|
|
|
|
|
attackby(obj/item/weapon/W as obj, mob/user as mob)
|
|
if (istype(W, /obj/item/weapon/card/id))
|
|
if(src.broken)
|
|
user << "\red It appears to be broken."
|
|
return
|
|
if(src.allowed(user))
|
|
src.locked = !( src.locked )
|
|
if(src.locked)
|
|
src.icon_state = src.icon_locked
|
|
user << "\red You lock the [src.name]!"
|
|
return
|
|
else
|
|
src.icon_state = src.icon_closed
|
|
user << "\red You unlock the [src.name]!"
|
|
return
|
|
else
|
|
user << "\red Access Denied"
|
|
else if((istype(W, /obj/item/weapon/card/emag)||istype(W, /obj/item/weapon/melee/energy/blade)) && !src.broken)
|
|
broken = 1
|
|
locked = 0
|
|
desc = "It appears to be broken."
|
|
icon_state = src.icon_broken
|
|
if(istype(W, /obj/item/weapon/melee/energy/blade))
|
|
var/datum/effect/effect/system/spark_spread/spark_system = new /datum/effect/effect/system/spark_spread()
|
|
spark_system.set_up(5, 0, src.loc)
|
|
spark_system.start()
|
|
playsound(src.loc, 'blade1.ogg', 50, 1)
|
|
playsound(src.loc, "sparks", 50, 1)
|
|
for(var/mob/O in viewers(user, 3))
|
|
O.show_message(text("\blue The locker has been sliced open by [] with an energy blade!", user), 1, text("\red You hear metal being sliced and sparks flying."), 2)
|
|
else
|
|
for(var/mob/O in viewers(user, 3))
|
|
O.show_message(text("\blue The locker has been broken by [] with an electromagnetic card!", user), 1, text("You hear a faint electrical spark."), 2)
|
|
|
|
if(!locked)
|
|
..()
|
|
else
|
|
user << "\red Its locked!"
|
|
return
|
|
|
|
|
|
show_to(mob/user as mob)
|
|
if(locked)
|
|
user << "\red Its locked!"
|
|
else
|
|
..()
|
|
return
|
|
|
|
|
|
/obj/item/weapon/storage/lockbox/loyalty
|
|
name = "Lockbox (Loyalty Implants)"
|
|
req_access = list(access_security)
|
|
|
|
New()
|
|
..()
|
|
new /obj/item/weapon/implantcase/loyalty(src)
|
|
new /obj/item/weapon/implantcase/loyalty(src)
|
|
new /obj/item/weapon/implantcase/loyalty(src)
|
|
new /obj/item/weapon/implanter/loyalty(src)
|
|
|
|
|
|
/obj/item/weapon/storage/lockbox/clusterbang
|
|
name = "lockbox (clusterbang)"
|
|
desc = "You have a bad feeling about opening this."
|
|
req_access = list(access_security)
|
|
|
|
New()
|
|
..()
|
|
new /obj/item/weapon/grenade/flashbang/clusterbang(src)
|