mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 11:36:24 +01:00
Fish refactor. (#65785)
Refactors fish into proper paths. Removes aquarium behaviour intermediary datums. Moves fish functionality out of aquarium content component. Fixes flopping animation resetting on dropping. Simplifies everything. There should be no player facing changes. The animate signal is kinda weak method of solving the animate queue issue but it seemed least intrusive to me. Open to any better ideas.
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
name = "fish"
|
||||
|
||||
/datum/asset/spritesheet/fish/create_spritesheets()
|
||||
for (var/path in subtypesof(/datum/aquarium_behaviour/fish))
|
||||
var/datum/aquarium_behaviour/fish/fish_type = path
|
||||
for (var/path in subtypesof(/obj/item/fish))
|
||||
var/obj/item/fish/fish_type = path
|
||||
var/fish_icon = initial(fish_type.icon)
|
||||
var/fish_icon_state = initial(fish_type.icon_state)
|
||||
var/id = sanitize_css_class_name("[fish_icon][fish_icon_state]")
|
||||
|
||||
Reference in New Issue
Block a user