fix soulcatcher SR sight (#9074)

This commit is contained in:
Kashargul
2024-09-28 18:52:30 +02:00
committed by GitHub
parent 5d099d261a
commit c8bd9bfdac
6 changed files with 29 additions and 19 deletions

View File

@@ -83,6 +83,7 @@
icon_sprite_tag = "wolf"
vore_tail_sprite_variant = "N"
fullness_icons = 3
struggle_anim = TRUE
/datum/sprite_accessory/tail/taur/ch/sergal/fatwheaties
name = "Fat Sergal (Taur)"
@@ -90,6 +91,7 @@
icon_sprite_tag = "wolf"
vore_tail_sprite_variant = "N"
fullness_icons = 3
struggle_anim = TRUE
/datum/sprite_accessory/tail/taur/ch/sergal/wheaties_2c
name = "Sergal (Taur, dual-color)"
@@ -98,6 +100,7 @@
icon_sprite_tag = "wolf"
vore_tail_sprite_variant = "N"
fullness_icons = 3
struggle_anim = TRUE
/datum/sprite_accessory/tail/taur/ch/sergal/fatwheaties_2c
name = "Fat Sergal (Taur, dual-color)"
@@ -106,6 +109,7 @@
icon_sprite_tag = "wolf"
vore_tail_sprite_variant = "N"
fullness_icons = 3
struggle_anim = TRUE
/datum/sprite_accessory/tail/taur/ch/longvirus
name = "Long Virus (Taur)"
@@ -131,6 +135,7 @@
icon_loaf = 'icons/mob/vore/taurs_ch_loaf.dmi'
vore_tail_sprite_variant = "SectDrone"
belly_variant_when_loaf = TRUE
struggle_anim = TRUE
loaf_offset = 3
fullness_icons = 3

View File

@@ -35,6 +35,7 @@
. = ..()
if(ismob(loc))
owner = loc
owner.recalculate_vis()
// Store the vars_to_save into the save file
/obj/soulgem/deserialize(list/data)
@@ -236,6 +237,8 @@
soulgem_sight()
if(flag & NIF_SC_PROJECTING)
soulgem_projecting()
if(flag & SOULGEM_SEE_SR_SOULS)
owner.recalculate_vis()
// Checks a single flag, or if all combined flags are true
/obj/soulgem/proc/flag_check(var/flag, var/match_all = FALSE)
@@ -526,11 +529,3 @@
ghost.abandon_mob()
qdel(M)
return TRUE
/obj/soulgem/proc/toggle_sr_vision()
if(VIS_SOULCATCHER in owner.vis_enabled)
owner.plane_holder.set_vis(VIS_SOULCATCHER, FALSE)
owner.vis_enabled -= VIS_SOULCATCHER
else
owner.plane_holder.set_vis(VIS_SOULCATCHER, TRUE)
owner.vis_enabled += VIS_SOULCATCHER