Skip to content

Commit

Permalink
refactors the werewolf change spell, changes the sprite for werewolve…
Browse files Browse the repository at this point in the history
…s' ears
  • Loading branch information
Wollywoger committed Dec 1, 2024
1 parent ad93687 commit ca8f194
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
spell_requirements = SPELL_REQUIRES_HUMAN
button_icon = 'maplestation_modules/icons/mob/actions/actions_advspells.dmi'
button_icon_state = "moon"
var/mob/living/carbon/human/lycanthrope
var/datum/species/owner_base_species // what species we are other than a werewolf
// yes this might cause other implications, such as mass species change, or with synths (synthcode moment) but i'll look into it later down the line

Expand All @@ -29,14 +28,14 @@
if (!ishuman(grant_to))
return stack_trace("A non human was given werewolf form!") // only human mobs should be given this
else
lycanthrope = grant_to
var/mob/living/carbon/human/lycanthrope = grant_to
owner_base_species = lycanthrope.dna.species

/datum/action/cooldown/spell/werewolf_form/cast(mob/living/carbon/human/cast_on)
. = ..()
if(istype(lycanthrope.dna.species, /datum/species/werewolf))
lycanthrope.balloon_alert(lycanthrope, "changing back")
lycanthrope.set_species(owner_base_species)
if(istype(cast_on.dna.species, /datum/species/werewolf))
cast_on.balloon_alert(cast_on, "changing back")
cast_on.set_species(owner_base_species)
else
lycanthrope.balloon_alert(lycanthrope, "turning")
lycanthrope.set_species(/datum/species/werewolf)
cast_on.balloon_alert(cast_on, "turning")
cast_on.set_species(/datum/species/werewolf)
Binary file modified maplestation_modules/icons/mob/mutant_bodyparts.dmi
Binary file not shown.

0 comments on commit ca8f194

Please sign in to comment.