entire messed up branch in one commit (#30794)

Co-authored-by: Gatchapod <Gatchapod@users.noreply.github.com>
This commit is contained in:
Gatchapod
2025-10-31 23:56:33 +01:00
committed by GitHub
parent dd017e20cc
commit 9863606763
6 changed files with 162 additions and 0 deletions
@@ -25,11 +25,14 @@ RESTRICT_TYPE(/datum/antagonist/vampire)
/datum/vampire_passive/vision = 100,
/datum/spell/vampire/self/specialize = 150,
/datum/spell/vampire/self/exfiltrate = 150,
/datum/spell/vampire/lair = 150,
/datum/vampire_passive/regen = 200,
/datum/vampire_passive/vision/advanced = 500)
/// list of the peoples UIDs that we have drained, and how much blood from each one
var/list/drained_humans = list()
/// did the vampire build a lair?
var/has_lair = FALSE
blurb_text_color = COLOR_RED
blurb_r = 255
blurb_g = 221
@@ -363,6 +366,7 @@ RESTRICT_TYPE(/datum/antagonist/vampire)
add_antag_objective(/datum/objective/protect)
else
add_antag_objective(/datum/objective/steal)
add_antag_objective(/datum/objective/lair)
if(prob(20)) // 20% chance of getting survive. 80% chance of getting escape.
add_antag_objective(/datum/objective/survive)
@@ -206,6 +206,65 @@
C.charge_duration = 2 SECONDS
return C
/datum/spell/vampire/lair
name = "Lair"
desc = "Pick a coffin for yourself, the centrepiece of your new lair."
gain_desc = "You can now start a lair."
action_icon = 'icons/obj/closet.dmi'
action_icon_state = "coffin"
base_cooldown = 2 SECONDS
/datum/spell/vampire/lair/create_new_targeting()
var/datum/spell_targeting/click/T = new
T.range = 1
T.allowed_type = /obj/structure/closet/coffin
return T
/datum/spell/vampire/lair/cast(list/targets, mob/user)
var/obj/structure/closet/coffin/C = targets[1] // this spell will basically always target a singular coffin unless you stack multiple on the same tile
if(!istype(C, /obj/structure/closet/coffin))
to_chat(user, "<span class='warning'>This only works on coffins!</span>")
return
if(istype(C, /obj/structure/closet/coffin/vampire))
to_chat(user, "<span class='warning'>This coffin serves another and refuses to bend to your will!</span>")
return
if(istype(C, /obj/structure/closet/coffin/sarcophagus))
to_chat(user, "<span class='warning'>Making such a lavish lair would likely upset an ancient. You should really use a wooden coffin for now.</span>")
return
for(var/turf/T in range(1, C))
if(T.density)
to_chat(user, "<span class='warning'>You need more space around the coffin for the ritual!</span>")
return
to_chat(user, "<span class='danger'>You begin marking the coffin!</span>")
C.Beam(user, icon_state = "drainbeam", maxdistance = 1, time = 10 SECONDS)
playsound(C, 'sound/misc/enter_blood.ogg', 20)
for(var/obj/machinery/light/L in range(5, user))
L.forced_flicker()
var/obj/effect/lair_rune/rune = new /obj/effect/lair_rune(get_turf(C), user)
if(!do_after(user, 10 SECONDS, target = C))
qdel(rune)
return
playsound(user, 'sound/hallucinations/im_here1.ogg', 30)
new /obj/structure/closet/coffin/vampire(get_turf(C), user)
qdel(C)
var/datum/antagonist/vampire/V = user.mind.has_antag_datum(/datum/antagonist/vampire)
V.has_lair = TRUE
user.mind.RemoveSpell(src)
/obj/effect/lair_rune
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
plane = FLOOR_PLANE
layer = SIGIL_LAYER
icon = 'icons/effects/96x96.dmi'
icon_state = "vampiric_rune"
pixel_x = -34
pixel_y = -38
/obj/effect/lair_rune/Initialize(mapload, mob/user)
. = ..()
if(user)
color = user.dna.species.blood_color
/// No deviation at all. Flashed from the front or front-left/front-right. Alternatively, flashed in direct view.
#define DEVIATION_NONE 3
/// Partial deviation. Flashed from the side. Alternatively, flashed out the corner of your eyes.