Files
MrMelbert 5a16f74fb3 Pixel adjustments to mobs are now sourced / Refactors riding (#89320)
Fixes #85980

- Pixel adjustments are now sourced

When tweaking a mob's pixel w, x, y, z, is is now done via `add_offsets`
and must have a source string associated

- Refactors riding

Refactors how riding component selects the offsets to use. It's now all
done via the getter rather than a weird mix of a var, a cache, and a
getter.

- Moves a bunch of animations to use `pixel_w` / `pixel_z`

Largely to prevent conflicts with adjustments to a mob's pixel position,
but also as many animations are not actual movements, but visual
movements. Floating is one such example.

It just works

🆑 Melbert
fix: Fixed grab offsets not showing for anything but passive grab
fix: Fix jank with mob offsets when riding things
refactor: Refactored riding component, particularly how it selects layer
and offsets. Report any oddities
refactor: Refactored pixel offsets of mobs. Report any oddities
/🆑
2025-03-12 16:00:01 -04:00

19 lines
625 B
Plaintext

// Some flavor additions for wolf-related pet commands
/datum/pet_command/good_boy/wolf
speech_commands = list("good wolf")
/datum/pet_command/follow/wolf
// Nordic-themed for a bit of extra flavor
speech_commands = list("heel", "follow", "fylgja", "fyl")
// Contains pixel offset data for sprites riding wolves
/datum/component/riding/creature/wolf
/datum/component/riding/creature/wolf/get_rider_offsets_and_layers(pass_index, mob/offsetter)
return list(
TEXT_NORTH = list(1, 9, OBJ_LAYER),
TEXT_SOUTH = list(1, 9, ABOVE_MOB_LAYER),
TEXT_EAST = list(0, 9, OBJ_LAYER),
TEXT_WEST = list(2, 9, OBJ_LAYER),
)