mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Upgrades GODMODE from a flag to a trait. (#86596)
## About The Pull Request GODMODE has a lot of sources that toggle it. From admin-stuff to status effects, components, actions and mobs which are supposed to be invincible. It's better off as a trait than a flag, so we can manage these sources. ## Why It's Good For The Game See above. ## Changelog 🆑 admin: godmode is now a datum trait instead of a bitflag. This means the process for toggling it is a little different now. /🆑
This commit is contained in:
@@ -25,8 +25,7 @@
|
||||
if(ismob(the_target)) //Target is in godmode, ignore it.
|
||||
if(living_mob.loc == the_target)
|
||||
return FALSE // We've either been eaten or are shapeshifted, let's assume the latter because we're still alive
|
||||
var/mob/M = the_target
|
||||
if(M.status_flags & GODMODE)
|
||||
if(HAS_TRAIT(the_target, TRAIT_GODMODE))
|
||||
return FALSE
|
||||
|
||||
if (vision_range && get_dist(living_mob, the_target) > vision_range)
|
||||
|
||||
Reference in New Issue
Block a user