Skip to content

Commit

Permalink
yaaay
Browse files Browse the repository at this point in the history
  • Loading branch information
Discozavisim committed Jan 25, 2025
1 parent 5255ec0 commit eca89b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/modules/mob/living/carbon/werewolf/transformation.dm
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,8 @@
owner.invisibility = INVISIBILITY_MAXIMUM
warform = new animal_atom(get_turf(owner))
warform.attributes = owner.attributes
warform.stop_automated_movement = TRUE
warform.wander = FALSE
humanform.dna.species.brutemod = initial(humanform.dna.species.brutemod)*(initial(humanform.maxHealth)/initial(warform.maxHealth))
humanform.dna.species.burnmod = initial(humanform.dna.species.burnmod)*(initial(humanform.maxHealth)/initial(warform.maxHealth))
warform.warform = src
Expand Down
7 changes: 7 additions & 0 deletions code/modules/mob/mob_movement.dm
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
* (if you ask me, this should be at the top of the move so you don't dance around)
*
*/
/mob/living/simple_animal/hostile
var/last_warform_move = 0

/client/Move(n, direct)
if(world.time < move_delay) //do not move anything ahead of this check please
return FALSE
Expand All @@ -94,6 +97,10 @@
if(H.in_frenzy)
return FALSE
if(H.warform)
if(H.warform.warform.last_warform_move > world.time)
return FALSE
H.warform.warform.last_warform_move = world.time+H.total_multiplicative_slowdown()
H.warform.warform.set_glide_size(DELAY_TO_GLIDE_SIZE(H.total_multiplicative_slowdown()))
H.warform.warform.Move(get_step(H.warform.warform, direct), direct)
H.warform.warform.dir = direct
H.dir = direct
Expand Down

0 comments on commit eca89b8

Please sign in to comment.