-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
13 changes: 13 additions & 0 deletions
13
monkestation/code/modules/new_antagonists/slasher/abilities/_slasher_base.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/datum/action/cooldown/slasher | ||
name = "Slasher Possession" | ||
desc = "You've been possessed by the Slasher" | ||
button_icon = 'goon/icons/mob/slasher.dmi' | ||
background_icon_state = "slasher_background" | ||
button_icon = 'goon/icons/mob/slasher.dmi' | ||
button_icon_state = "slasher_template" | ||
buttontooltipstyle = "cult" | ||
transparent_when_unavailable = TRUE | ||
|
||
|
||
/datum/action/cooldown/slasher/IsAvailable(feedback = FALSE) | ||
return next_use_time <= world.time |
62 changes: 62 additions & 0 deletions
62
monkestation/code/modules/new_antagonists/slasher/abilities/blood_walk.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/datum/action/cooldown/slasher/blood_walk | ||
name = "Blood Trail" | ||
desc = "Begin trailing blood in your wake. Spooky! " | ||
button_icon_state = "trail_blood" | ||
|
||
cooldown_time = 30 SECONDS | ||
|
||
/datum/action/cooldown/slasher/blood_walk/Activate(atom/target) | ||
. = ..() | ||
if(isliving(target)) | ||
var/mob/living/mob_target = target | ||
mob_target.set_timed_status_effect(15 SECONDS, /datum/status_effect/blood_trial) | ||
|
||
|
||
/datum/status_effect/blood_trial | ||
id = "confusion" | ||
alert_type = null | ||
|
||
/datum/status_effect/blood_trial/on_creation(mob/living/new_owner, duration = 15 SECONDS) | ||
src.duration = duration | ||
return ..() | ||
|
||
/datum/status_effect/blood_trial/on_apply() | ||
RegisterSignal(owner, COMSIG_MOVABLE_MOVED, PROC_REF(on_move)) | ||
return TRUE | ||
|
||
/datum/status_effect/blood_trial/on_remove() | ||
UnregisterSignal(owner, COMSIG_MOVABLE_MOVED) | ||
|
||
|
||
/datum/status_effect/blood_trial/proc/find_pool_by_blood_state(turf/turfLoc, typeFilter = null) | ||
for(var/obj/effect/decal/cleanable/blood/pool in turfLoc) | ||
if(pool.blood_state == BLOOD_STATE_HUMAN && (!typeFilter || istype(pool, typeFilter))) | ||
return pool | ||
|
||
|
||
/datum/status_effect/blood_trial/proc/on_move(atom/movable/mover, turf/old_loc) | ||
SIGNAL_HANDLER | ||
|
||
var/turf/oldLocTurf = get_turf(old_loc) | ||
var/obj/effect/decal/cleanable/blood/footprints/oldLocFP = find_pool_by_blood_state(oldLocTurf, /obj/effect/decal/cleanable/blood/footprints) | ||
if(oldLocFP) | ||
// Footprints found in the tile we left, add us to it | ||
if (!(oldLocFP.exited_dirs & mover.dir)) | ||
oldLocFP.exited_dirs |= mover.dir | ||
oldLocFP.update_appearance() | ||
|
||
else | ||
oldLocFP = new(oldLocTurf) | ||
if(!QDELETED(oldLocFP)) ///prints merged | ||
oldLocFP.blood_state = BLOOD_STATE_HUMAN | ||
oldLocFP.exited_dirs |= mover.dir | ||
oldLocFP.bloodiness = 100 | ||
oldLocFP.update_appearance() | ||
|
||
var/obj/effect/decal/cleanable/blood/footprints/FP = new(get_turf(100)) | ||
if(!QDELETED(FP)) ///prints merged | ||
FP.blood_state = BLOOD_STATE_HUMAN | ||
FP.entered_dirs |= mover.dir | ||
FP.bloodiness = 100 | ||
FP.update_appearance() | ||
|
32 changes: 32 additions & 0 deletions
32
monkestation/code/modules/new_antagonists/slasher/abilities/incorporealize.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/datum/action/cooldown/slasher/incorporealize | ||
name = "Incorporealize" | ||
desc = " Become incorporeal, capable of moving through walls and being completely invisible, but unable to interact with the world. Can only be used when corporeal and when not in view of any human being. " | ||
button_icon_state = "incorporealize" | ||
cooldown_time = 20 SECONDS | ||
|
||
var/flipped = FALSE | ||
|
||
/datum/action/cooldown/slasher/incorporealize/PreActivate(atom/target) | ||
. = ..() | ||
if(!do_after(target, 1.5 SECONDS, get_turf(target))) | ||
return FALSE | ||
|
||
if(!flipped) | ||
for(var/mob/living/watchers in view(9, target) - target) | ||
target.balloon_alert(owner, "you can only vanish unseen.") | ||
return FALSE | ||
return TRUE | ||
|
||
/datum/action/cooldown/slasher/incorporealize/Activate(atom/target) | ||
. = ..() | ||
|
||
flipped = !flipped | ||
|
||
if(flipped) | ||
name = "Corporealize" | ||
desc = "Manifest your being from your incorporeal state." | ||
button_icon_state = "corporealize" | ||
else | ||
name = "Incorporealize" | ||
desc = " Become incorporeal, capable of moving through walls and being completely invisible, but unable to interact with the world. Can only be used when corporeal and when not in view of any human being. " | ||
button_icon_state = "incorporealize" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters