Skip to content

Commit

Permalink
fix(vampire): fixes veilstep via RMB and darkvision icon
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyThorne authored Oct 30, 2023
1 parent 5dea49d commit 2cd301a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/game/gamemodes/vampire/powers/darkvision.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/datum/vampire_power/toggled/darkvision
name = "Darkvision"
desc = "You're are able to see in the dark."
icon_state = "vamp_darksight_on"
icon_state = "vamp_darksight_off"
power_processing = FALSE
max_stat = UNCONSCIOUS

Expand Down
10 changes: 8 additions & 2 deletions code/game/gamemodes/vampire/powers/veilstep.dm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@
set category = null
set name = "Veil Step (20)"
set desc = "For a moment, move through the Veil and emerge at a shadow of your choice."
if(ishuman(src)) // When used via the context menu the proc reparents to the mob, thank you lummox
var/mob/living/carbon/human/H = src
H.mind?.vampire?._vampire_veilstep(T)
else
_vampire_veilstep(T)
log_and_message_admins("activated veil step.")

/datum/vampire/proc/_vampire_veilstep(turf/T)
var/blood_cost = 20

if (!T || T.density || T.contains_dense_objects())
Expand Down Expand Up @@ -69,6 +77,4 @@
else
qdel(G)

log_and_message_admins("activated veil step.")

use_blood(blood_cost)

0 comments on commit 2cd301a

Please sign in to comment.