This commit is contained in:
zerothebigboy
2021-02-09 17:31:24 -05:00
parent 85886f563f
commit 7d60d27a6f
31 changed files with 118 additions and 158 deletions
@@ -12,6 +12,9 @@
///Whether or not this ninja receives the standard equipment
var/give_equipment = TRUE
/proc/is_ninja(mob/living/M)
return M && M.mind && M.mind.has_antag_datum(/datum/antagonist/ninja)
/datum/antagonist/ninja/apply_innate_effects(mob/living/mob_override)
var/mob/living/ninja = mob_override || owner.current
add_antag_hud(antag_hud_type, antag_hud_name, ninja)
@@ -82,7 +85,7 @@
var/datum/objective/plant_explosive/bombobjective = new /datum/objective/plant_explosive()
for(var/sanity in 1 to 100) // 100 checks at most.
var/area/selected_area = pick(GLOB.sortedAreas)
if(!is_station_level(selected_area.z) || !(selected_area.area_flags & VALID_TERRITORY))
if(!is_station_level(selected_area.z) || !selected_area.valid_territory)
continue
bombobjective.detonation_location = selected_area
break
@@ -125,4 +128,4 @@
new_owner.special_role = ROLE_NINJA
new_owner.add_antag_datum(src)
message_admins("[key_name_admin(admin)] has ninja'ed [key_name_admin(new_owner)].")
log_admin("[key_name(admin)] has ninja'ed [key_name(new_owner)].")
log_admin("[key_name(admin)] has ninja'ed [key_name(new_owner)].")