Skip to content

Commit

Permalink
revenants now use movetype handler
Browse files Browse the repository at this point in the history
  • Loading branch information
XeonMations committed Aug 23, 2024
1 parent 2cfdc63 commit 8d68bd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/modules/antagonists/revenant/revenant.dm
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
status_flags = 0
wander = FALSE
density = FALSE
is_flying_animal = TRUE
move_resist = MOVE_FORCE_OVERPOWERING
mob_size = MOB_SIZE_TINY
pass_flags = PASSTABLE | PASSMOB
Expand Down Expand Up @@ -87,6 +86,8 @@
AddComponent(/datum/component/tracking_beacon, "ghost", null, null, TRUE, "#9e4d91", TRUE, TRUE, "#490066")
grant_all_languages(TRUE, FALSE, FALSE, LANGUAGE_REVENANT) // rev can understand every langauge
ADD_TRAIT(src, TRAIT_FREE_HYPERSPACE_MOVEMENT, INNATE_TRAIT)
AddElement(/datum/element/movetype_handler)
ADD_TRAIT(src, TRAIT_MOVE_FLOATING, "ghost")

/mob/living/simple_animal/revenant/onTransitZ(old_z, new_z)
. = ..()
Expand Down Expand Up @@ -416,8 +417,7 @@

/mob/living/simple_animal/revenant/stop_orbit(datum/component/orbiter/orbits)
// reset the simple_flying animation
animate(src, pixel_y = 2, time = 1 SECONDS, loop = -1, flags = ANIMATION_RELATIVE)
animate(pixel_y = -2, time = 1 SECONDS, flags = ANIMATION_RELATIVE)
ADD_TRAIT(src, TRAIT_MOVE_FLOATING, "ghost")
return ..()

/// Incorporeal move check: blocked by holy-watered tiles and salt piles.
Expand Down
1 change: 1 addition & 0 deletions code/modules/antagonists/revenant/revenant_abilities.dm
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@

/mob/living/simple_animal/revenant/orbit(atom/target)
setDir(SOUTH) // reset dir so the right directional sprites show up
REMOVE_TRAIT(src, TRAIT_MOVE_FLOATING, "ghost")
return ..()


Expand Down

0 comments on commit 8d68bd9

Please sign in to comment.