Skip to content

Commit

Permalink
makes it possible for admins to edit under siege cqc valid areas (tgs…
Browse files Browse the repository at this point in the history
  • Loading branch information
Fikou authored Sep 16, 2020
1 parent 79265e1 commit d8d36d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/datums/martial/cqc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,10 @@
///Subtype of CQC. Only used for the chef.
/datum/martial_art/cqc/under_siege
name = "Close Quarters Cooking"
var/list/valid_areas = list(/area/crew_quarters/kitchen)

///Prevents use if the cook is not in the kitchen.
/datum/martial_art/cqc/under_siege/can_use(mob/living/carbon/human/H) //this is used to make chef CQC only work in kitchen
if(!istype(get_area(H), /area/crew_quarters/kitchen))
if(!is_type_in_list(get_area(H), valid_areas))
return FALSE
return ..()

0 comments on commit d8d36d0

Please sign in to comment.