Refactors sound groups to use decls instead of a massive switch with dozens of global lists. (#9702)

This commit is contained in:
Matt Atlas
2020-08-28 20:47:00 +02:00
committed by GitHub
parent db1b0cece0
commit 0dd08df5b2
125 changed files with 629 additions and 557 deletions
+2 -2
View File
@@ -156,13 +156,13 @@
insert_sheet_at(usr, page+1, in_hand)
else if(page != pages.len)
page++
playsound(src.loc, "pageturn", 50, 1)
playsound(src.loc, /decl/sound_category/page_sound, 50, 1)
if(href_list["prev_page"])
if(in_hand && (istype(in_hand, /obj/item/paper) || istype(in_hand, /obj/item/photo)))
insert_sheet_at(usr, page, in_hand)
else if(page > 1)
page--
playsound(src.loc, "pageturn", 50, 1)
playsound(src.loc, /decl/sound_category/page_sound, 50, 1)
if(href_list["remove"])
var/obj/item/W = pages[page]
usr.put_in_hands(W)