mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-01 20:42:08 +00:00
15 lines
471 B
Plaintext
15 lines
471 B
Plaintext
/datum/asset/spritesheet/fish
|
|
name = "fish"
|
|
|
|
/datum/asset/spritesheet/fish/create_spritesheets()
|
|
var/list/id_list = list()
|
|
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]")
|
|
if(id in id_list) //no dupes
|
|
continue
|
|
id_list += id
|
|
Insert(id, fish_icon, fish_icon_state)
|