Fixes a few googles not working (#30644)

* fixes night vision

* God dammit fuck you lummox

* vamp

* oops
This commit is contained in:
ShiftyRail
2021-09-09 15:30:36 +01:00
committed by GitHub
parent 9a29f73471
commit d24e4fe26f
5 changed files with 39 additions and 10 deletions

View File

@@ -31,6 +31,9 @@
Things to do to the *old* body prior to the mind transfer.
@PostMindTransfer(New_character, Mob/Living, Old_character, Mob/Living)
Things to do to the *new* body after the mind transfer is completed.
@update_perception()
Called on Life() to handle the role's additional alphas to the dark plane.
*/
#define ROLE_MIXABLE 1 // Can be used in mixed mode
@@ -261,6 +264,11 @@
/datum/role/proc/check_win()
return
// called on Life()
/datum/role/proc/update_perception()
return
// Create objectives here.
/datum/role/proc/ForgeObjectives()
return

View File

@@ -257,7 +257,6 @@
H.change_sight(adding = SEE_TURFS|SEE_OBJS)
H.dark_plane.alphas["vampire_vision"] = 255
H.see_in_dark = 8
H.see_invisible = SEE_INVISIBLE_MINIMUM
/datum/role/vampire/proc/is_mature_or_has_vision()
return (locate(/datum/power/vampire/vision) in current_powers) || (locate(/datum/power/vampire/mature) in current_powers)
@@ -300,6 +299,12 @@
O.status &= ~ORGAN_BLEEDING
nullified = max(0, nullified - 1)
/datum/role/vampire/update_perception()
var/mob/living/carbon/human/H = antag.current
if (locate(/datum/power/vampire/mature) in current_powers)
H.dark_plane.alphas["vampire_vision"] = 255
H.see_in_dark = 8
/datum/role/vampire/proc/handle_cloak(var/mob/living/carbon/human/H)
var/turf/T = get_turf(H)
if(H.stat != DEAD)