mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
Make magic disguises easier to break, reworks its spell cast (#25929)
* Make magic disguise easier to break
* add hitby
* add signal check
* update comment
* Fix check and update spell description
* Apply suggestions from code review
Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
* added signal to atom
* Revert "added signal to atom"
This reverts commit 79e2aa68d8.
* Update code/datums/spells/disguise_self.dm
Co-authored-by: Charlie Nolan <funnyman3595@gmail.com>
Signed-off-by: datlo <quentinkoyote@gmail.com>
* adress review, add spin casting
* linter fix
* actually fix linters
* i am so dumb
* fix typo
* Update code/modules/mob/living/carbon/human/species/_species.dm
Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
---------
Signed-off-by: datlo <quentinkoyote@gmail.com>
Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Co-authored-by: Charlie Nolan <funnyman3595@gmail.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
co-authored by
1080pCat
Luc
Charlie Nolan
DGamerL
parent
bb2e96792b
commit
882deeff51
@@ -31,7 +31,7 @@
|
||||
to_chat(owner, "<span class='warning'>Your spell fails to find a disguise!</span>")
|
||||
return FALSE
|
||||
|
||||
RegisterSignal(owner, COMSIG_MOB_APPLY_DAMAGE, PROC_REF(remove_disguise))
|
||||
RegisterSignal(owner, list(COMSIG_MOB_APPLY_DAMAGE, COMSIG_HUMAN_ATTACKED, COMSIG_SPECIES_HITBY), PROC_REF(remove_disguise))
|
||||
return TRUE
|
||||
|
||||
/datum/status_effect/magic_disguise/on_remove()
|
||||
@@ -78,7 +78,7 @@
|
||||
to_chat(H, "<span class='notice'>You disguise yourself as [disguise.name].</span>")
|
||||
|
||||
/datum/status_effect/magic_disguise/proc/remove_disguise()
|
||||
SIGNAL_HANDLER // COMSIG_MOB_APPLY_DAMAGE
|
||||
SIGNAL_HANDLER // COMSIG_MOB_APPLY_DAMAGE + COMSIG_HUMAN_ATTACKED + COMSIG_SPECIES_HITBY
|
||||
if(!ishuman(owner))
|
||||
return
|
||||
var/mob/living/carbon/human/H = owner
|
||||
|
||||
Reference in New Issue
Block a user