mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Fixes a few googles not working (#30644)
* fixes night vision * God dammit fuck you lummox * vamp * oops
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user