Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,20 @@
/datum/discipline_power/presence/dread_gaze/activate(mob/living/carbon/human/target)
. = ..()
apply_presence_overlay(target)

if(successes >= (target.st_get_stat(STAT_WITS) + target.st_get_stat(STAT_COURAGE))) //We check if you just flat out have more successes than their dice pool total.
var/extended_action_prompt = tgui_input_list(owner, "Attempt to force your target to cower in fear? This will take time to preform this extended action to stun and debuff your opponent!", "Terrifying Presence", list("Yes", "No"), "No")
switch(extended_action_prompt)
if("Yes")
ADD_TRAIT(owner, TRAIT_IMMOBILIZED, DISCIPLINE_TRAIT(type))
if(do_after(owner, 3 SECONDS))
to_chat(owner, span_warning("You force [target] to cower to your mere presence!"))
to_chat(target, span_userdanger("You are consumed with an overhwelming sense of dread, forced to cower before [owner] as even your legs betray you and your very being is rocked to its core!"))
target.Stun(1 TURNS) //~5 seconds
target.emote("tremble") //Shaking emote for visibility
target.emote(pick("scream","cry")) //Audible emote
target.apply_status_effect(/datum/status_effect/dread_gaze) //Debuffs for set time
REMOVE_TRAIT(owner, TRAIT_IMMOBILIZED, DISCIPLINE_TRAIT(type))
return TRUE
if(successes <= 3) // already checked for above 0 in pre_activation
to_chat(target, span_userdanger("You are consumed with terror toward [owner]!"))
to_chat(owner, span_warning("You've struck terror into [target]'s heart with your dreadful gaze!"))
Expand All @@ -168,9 +181,7 @@
to_chat(owner, span_warning("Your terrifying presence sends [target] fleeing in terror!"))

//V20's 'dread gaze' section states that with 3 or more successes targets will find themselves scratching at the walls or fleeing against their will because they are so terrified.
//var/datum/cb = CALLBACK(target, TYPE_PROC_REF(/mob/living/carbon/human, step_away_caster), owner)
//for(var/i in 1 to 30)
//addtimer(cb, (i - 1) * target.total_multiplicative_slowdown())
GLOB.move_manager.move_away(target, owner, 10, target.cached_multiplicative_slowdown)

/datum/discipline_power/presence/dread_gaze/deactivate(mob/living/carbon/human/target)
. = ..()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/datum/status_effect/dread_gaze //Used for extended effect of dreadgaze
id = "dread_gaze"
status_type = STATUS_EFFECT_UNIQUE
duration = 5 SECONDS
alert_type = /atom/movable/screen/alert/status_effect/dread_gaze
var/mob/living/carbon/human/source
var/stored_dexterity
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unused var?


/datum/status_effect/dread_gaze/on_creation(mob/living/new_owner, generation, time)
. = ..()
if(time)
duration = time
owner.st_add_stat_mod(STAT_DEXTERITY, -4) //Nukes your dex temporarily

/atom/movable/screen/alert/status_effect/dread_gaze
name = "Overwhelming Dread"
desc = "That person- that THING is a monster! I don't stand a chance!"
icon_state = "hypnosis"
1 change: 1 addition & 0 deletions tgstation.dme
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// DM Environment file for tgstation.dme.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\dwelling\code\area_dwelling.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\dwelling\code\obj_dwelling.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\dwelling\code\_dwelling_gvars_defines.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\economy\code\stocks_license.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\effects\code\reflection.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\latejoin_antagonists\code\latejoin_subsystem.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\powers\code\discipline\mytherceria.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\powers\code\discipline\healer_valeren.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\weather\code\weather.dm.

Check failure on line 1 in tgstation.dme

View workflow job for this annotation

GitHub Actions / Run Linters / linters

Ticked File Enforcement

Missing include for modular_darkpack\modules\merits_flaws\code\old_quirks.dm.
// All manual changes should be made outside the BEGIN_ and END_ blocks.
// New source code should be placed in .dm files: choose File/New --> Code File.

Expand Down Expand Up @@ -7655,6 +7655,7 @@
#include "modular_darkpack\modules\powers\code\discipline\potence\potence_status_effect.dm"
#include "modular_darkpack\modules\powers\code\discipline\presence\presence.dm"
#include "modular_darkpack\modules\powers\code\discipline\presence\status_effects\awe_status_effect.dm"
#include "modular_darkpack\modules\powers\code\discipline\presence\status_effects\dread_gaze.dm"
#include "modular_darkpack\modules\powers\code\discipline\presence\status_effects\entrancement_status_effect.dm"
#include "modular_darkpack\modules\powers\code\discipline\protean\beast_form.dm"
#include "modular_darkpack\modules\powers\code\discipline\protean\claws.dm"
Expand Down
Loading