Skip to content

Commit

Permalink
fix random bookcase icon (ParadiseSS13#28034)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraHell authored Jan 19, 2025
1 parent 97e99fe commit 61802a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/library/library_equipment.dm
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,13 @@
/obj/structure/bookcase/random
var/category = null
var/book_count = 5
icon_state = "random_bookcase"
icon_state = "random_bookshelf"
anchored = TRUE

/obj/structure/bookcase/random/Initialize(mapload)
. = ..()
addtimer(CALLBACK(src, PROC_REF(load_books)), 0)
icon_state = "bookshelf" // to keep random_bookshelf icon for mappers

/obj/structure/bookcase/random/proc/load_books()
var/list/books = GLOB.library_catalog.get_random_book(book_count)
Expand Down
Binary file modified icons/obj/library.dmi
Binary file not shown.

0 comments on commit 61802a7

Please sign in to comment.