mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 09:05:11 +01:00
5a16f74fb3
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 /🆑
19 lines
625 B
Plaintext
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),
|
|
)
|