Files
vgstation13/code/modules/spells/general/cloak.dm
ShiftyRail 42433ee4d3 Ports Vampire to role_datums. (#17937)
* Ports Vampire to role_datums.

* Spells

* Spells r dum

* A lot of stuff

* tgstat

* I dun get it

* to_chat(world) madness

* Stash

* Fixes a few things

* Enthrall, more fixes

* Changes

* (Almost) all spells !

* Almost done

* Final touch.

* Cleaning up review comments, real objectives.

* What a dummy.

* Adds ling intro sound, adds gamemode orphaned role process handling, adds role process handling to factions. Changeling the changeling HUD to show how much genetic damage you have sustained, changes the changeling greeting. (#17713)

* [Cult 3.0] mostly Cult Altar related stuff (#17723)

* cultaltar

* cultaltar 2

* cultaltar 3

* cultaltar 4

* Adds rev to role datums (#17873)

* Ports Vampire to role_datums.

* Spells

* Spells r dum

* A lot of stuff

* tgstat

* Role datums tator, double agents, and nuclear operatives (#17935)

* It's not calling things on members for some reason.

* there's probably a to_chat(world in here somewhere

* double agents

* nuke ops tomorrow. Tonight we gondola

* nuke ops bois

* Almost forgot the objective

* I dun get it

* to_chat(world) madness

* Stash

* Fixes a few things

* Enthrall, more fixes

* Changes

* (Almost) all spells !

* Almost done

* Final touch.

* Cleaning up review comments, real objectives.

* What a dummy.

* Haha

* Update acquire_blood.dm

* Change the orders of things

* Redundant

* I can't believe I didnd't fix that sooner

It's probably because I'm retarded lmao
2018-05-11 06:18:35 +01:00

36 lines
1023 B
Plaintext

/spell/cloak
name = "Cloak of Darkness (toggle)"
desc = "Toggles whether you are currently cloaking yourself in darkness."
abbreviation = "CK"
school = "vampire"
user_type = USER_TYPE_VAMPIRE
charge_type = Sp_RECHARGE
charge_max = 1 SECONDS
invocation_type = SpI_NONE
range = 0
spell_flags = STATALLOWED | NEEDSHUMAN
cooldown_min = 1 SECONDS
override_base = "vamp"
hud_state = "vampire_cloak"
var/blood_cost = 0
/spell/cloak/cast_check(var/skipcharge = 0, var/mob/user = usr)
. = ..()
if (!.) // No need to go further.
return FALSE
if (!user.vampire_power(blood_cost, CONSCIOUS))
return FALSE
/spell/cloak/choose_targets(var/mob/user = usr)
return list(user) // Self-cast
/spell/cloak/cast(var/list/targets, var/mob/user)
var/datum/role/vampire/V = isvampire(user) // Shouldn't ever be null, as cast_check checks if we're a vamp.
if (!V)
return FALSE
V.iscloaking = !V.iscloaking
to_chat(user, "<span class='notice'>You will now be [V.iscloaking ? "hidden" : "seen"] in darkness.</span>")