mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-26 22:57:39 +01:00
Merge branch 'master' of https://github.com/PolarisSS13/Polaris into aro-sync-04252018
# Conflicts: # README.md # code/game/jobs/job/job.dm # code/modules/client/preference_setup/loadout/loadout_utility.dm # code/modules/mob/living/carbon/human/examine.dm # code/modules/mob/living/carbon/human/npcs.dm # code/modules/mob/living/carbon/human/species/station/prometheans.dm # html/changelogs/.all_changelog.yml # maps/RandomZLevels/Academy.dmm # maps/RandomZLevels/beach.dmm # maps/RandomZLevels/blackmarketpackers.dmm # maps/RandomZLevels/challenge.dmm # maps/RandomZLevels/example.dmm # maps/RandomZLevels/jungle.dmm # maps/RandomZLevels/listeningpost.dmm # maps/RandomZLevels/spacebattle.dmm # maps/RandomZLevels/stationCollision.dmm # maps/RandomZLevels/wildwest.dmm # maps/RandomZLevels/zresearchlabs.dmm # maps/northern_star/polaris-1.dmm # maps/southern_cross/southern_cross-1.dmm # maps/southern_cross/southern_cross-3.dmm # maps/southern_cross/southern_cross-6.dmm # maps/southern_cross/southern_cross-7.dmm # maps/submaps/surface_submaps/mountains/CrashedMedShuttle1.dmm # maps/submaps/surface_submaps/plains/Boathouse.dmm # maps/submaps/surface_submaps/wilderness/Blackshuttledown.dmm # maps/submaps/surface_submaps/wilderness/Boombase.dmm # maps/submaps/surface_submaps/wilderness/DJOutpost1.dmm # maps/submaps/surface_submaps/wilderness/DecoupledEngine.dmm # maps/submaps/surface_submaps/wilderness/Drugden.dmm # maps/submaps/surface_submaps/wilderness/Rockybase.dmm # maps/submaps/surface_submaps/wilderness/Shack1.dmm # maps/virgo/virgo-6.dmm # vorestation.dme
This commit is contained in:
@@ -58,11 +58,30 @@
|
||||
"Administrator" = list("open" = "capsecureopen", "closed" = "capsecure", "locked" = "capsecure1", "broken" = "capsecurebroken", "off" = "capsecureoff")
|
||||
)
|
||||
|
||||
var/forbidden_types = list(
|
||||
/obj/structure/closet/alien,
|
||||
/obj/structure/closet/body_bag,
|
||||
/obj/structure/closet/cabinet,
|
||||
/obj/structure/closet/crate,
|
||||
/obj/structure/closet/coffin,
|
||||
/obj/structure/closet/fireaxecabinet,
|
||||
/obj/structure/closet/hydrant,
|
||||
/obj/structure/closet/medical_wall,
|
||||
/obj/structure/closet/statue,
|
||||
/obj/structure/closet/walllocker
|
||||
)
|
||||
|
||||
/obj/item/device/closet_painter/afterattack(atom/A, var/mob/user, proximity)
|
||||
if(!proximity)
|
||||
return
|
||||
|
||||
var/non_closet = 0
|
||||
if(!istype(A,/obj/structure/closet))
|
||||
non_closet = 1
|
||||
for(var/ctype in forbidden_types)
|
||||
if(istype(A,ctype))
|
||||
non_closet = 1
|
||||
if(non_closet)
|
||||
user << "<span class='warning'>\The [src] can only be used on closets.</span>"
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user