mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 07:28:53 +01:00
Further tweaks for is_outdoors usage
This commit is contained in:
@@ -86,7 +86,7 @@
|
||||
var/num = 0
|
||||
for(var/mob/living/L in player_list)
|
||||
var/turf/T = get_turf(L)
|
||||
if(istype(T) && !istype(T, /turf/space) && T.outdoors)
|
||||
if(istype(T) && !istype(T, /turf/space) && T.is_outdoors())
|
||||
. += assess_player_activity(L)
|
||||
num++
|
||||
if(num)
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
var/num = 0
|
||||
for(var/mob/living/L in player_list)
|
||||
var/turf/T = get_turf(L)
|
||||
if(istype(T) && !istype(T, /turf/space) && T.outdoors)
|
||||
if(istype(T) && !istype(T, /turf/space) && T.is_outdoors())
|
||||
if(assess_player_activity(L) >= cutoff)
|
||||
num++
|
||||
return num
|
||||
|
||||
@@ -136,7 +136,8 @@
|
||||
if(stat != DEAD && cell)
|
||||
|
||||
// TODO generalize solar occlusion to charge from the actual sun.
|
||||
var/new_recharge_state = istype(loc, /turf/simulated/floor/outdoors) || /*, /turf/exterior) */ istype(loc, /turf/space)
|
||||
var/turf/T = get_turf(src)
|
||||
var/new_recharge_state = T?.is_outdoors() || isspace(T)
|
||||
if(new_recharge_state != last_recharge_state)
|
||||
last_recharge_state = new_recharge_state
|
||||
if(last_recharge_state)
|
||||
|
||||
Reference in New Issue
Block a user