mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 23:58:07 +01:00
[MIRROR] Adds Chuunibyou Spell + Granter [MDB IGNORE] (#20299)
* Adds Chuunibyou Spell + Granter * aazaasdaw --------- Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com> Co-authored-by: John Doe <gamingskeleton3@gmail.com> Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
This commit is contained in:
co-authored by
tralezab
John Doe
Gandalf
parent
45552656e6
commit
c79bd4f13b
@@ -42,12 +42,17 @@
|
||||
else
|
||||
SSlibrary.shelves_to_load += src
|
||||
|
||||
///proc for doing things after a bookcase is randomly populated
|
||||
/obj/structure/bookcase/proc/after_random_load()
|
||||
return
|
||||
|
||||
///Loads the shelf, both by allowing it to generate random items, and by adding its contents to a list used by library machines
|
||||
/obj/structure/bookcase/proc/load_shelf()
|
||||
//Loads a random selection of books in from the db, adds a copy of their info to a global list
|
||||
//To send to library consoles as a starting inventory
|
||||
if(load_random_books)
|
||||
create_random_books(books_to_load, src, FALSE, random_category)
|
||||
after_random_load()
|
||||
update_appearance() //Make sure you look proper
|
||||
|
||||
var/area/our_area = get_area(src)
|
||||
|
||||
@@ -71,12 +71,22 @@
|
||||
/obj/structure/bookcase/random/fiction
|
||||
name = "bookcase (Fiction)"
|
||||
random_category = "Fiction"
|
||||
///have we spawned the chuuni granter
|
||||
var/static/chuuni_book_spawned = FALSE
|
||||
|
||||
/obj/structure/bookcase/random/fiction/after_random_load()
|
||||
if(!chuuni_book_spawned && is_station_level(z))
|
||||
chuuni_book_spawned = TRUE
|
||||
new /obj/item/book/granter/chuunibyou(src)
|
||||
|
||||
/obj/structure/bookcase/random/nonfiction
|
||||
name = "bookcase (Non-Fiction)"
|
||||
random_category = "Non-fiction"
|
||||
|
||||
/obj/structure/bookcase/random/religion
|
||||
name = "bookcase (Religion)"
|
||||
random_category = "Religion"
|
||||
|
||||
/obj/structure/bookcase/random/adult
|
||||
name = "bookcase (Adult)"
|
||||
random_category = "Adult"
|
||||
|
||||
Reference in New Issue
Block a user