mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Openning and flicking cult tome pages now does somes low volume short-range noise (#22986)
* cultpageflick * rustled
This commit is contained in:
@@ -113,6 +113,7 @@ var/list/arcane_tomes = list()
|
|||||||
if(href_list["page"])
|
if(href_list["page"])
|
||||||
current_page = text2num(href_list["page"])
|
current_page = text2num(href_list["page"])
|
||||||
flick("tome-flick",src)
|
flick("tome-flick",src)
|
||||||
|
playsound(usr, "pageturn", 50, 1, -5)
|
||||||
|
|
||||||
if(href_list["talisman"])
|
if(href_list["talisman"])
|
||||||
var/obj/item/weapon/talisman/T = locate(href_list["talisman"])
|
var/obj/item/weapon/talisman/T = locate(href_list["talisman"])
|
||||||
@@ -195,6 +196,7 @@ var/list/arcane_tomes = list()
|
|||||||
icon_state = "tome-open"
|
icon_state = "tome-open"
|
||||||
item_state = "tome-open"
|
item_state = "tome-open"
|
||||||
flick("tome-flickopen",src)
|
flick("tome-flickopen",src)
|
||||||
|
playsound(user, "pageturn", 50, 1, -5)
|
||||||
state = TOME_OPEN
|
state = TOME_OPEN
|
||||||
usr << browse_rsc('icons/tomebg.png', "tomebg.png")
|
usr << browse_rsc('icons/tomebg.png', "tomebg.png")
|
||||||
usr << browse(tome_text(), "window=arcanetome;size=537x375")
|
usr << browse(tome_text(), "window=arcanetome;size=537x375")
|
||||||
@@ -215,6 +217,7 @@ var/list/arcane_tomes = list()
|
|||||||
if (Adjacent(user))
|
if (Adjacent(user))
|
||||||
to_chat(user, "You flick a page.")
|
to_chat(user, "You flick a page.")
|
||||||
flick("tome-flick",src)
|
flick("tome-flick",src)
|
||||||
|
playsound(user, "pageturn", 50, 1, -3)
|
||||||
can_flick = 0
|
can_flick = 0
|
||||||
spawn(5)
|
spawn(5)
|
||||||
can_flick = 1
|
can_flick = 1
|
||||||
@@ -251,6 +254,7 @@ var/list/arcane_tomes = list()
|
|||||||
icon_state = "tome-open"
|
icon_state = "tome-open"
|
||||||
item_state = "tome-open"
|
item_state = "tome-open"
|
||||||
flick("tome-flickopen",src)
|
flick("tome-flickopen",src)
|
||||||
|
playsound(user, "pageturn", 50, 1, -5)
|
||||||
state = TOME_OPEN
|
state = TOME_OPEN
|
||||||
var/choice = show_radial_menu(user,loc,choices,'icons/obj/cult_radial3.dmi', "radial-cult2")
|
var/choice = show_radial_menu(user,loc,choices,'icons/obj/cult_radial3.dmi', "radial-cult2")
|
||||||
if(!choice_to_talisman[choice])
|
if(!choice_to_talisman[choice])
|
||||||
|
|||||||
@@ -88,6 +88,7 @@
|
|||||||
tome.icon_state = "tome-open"
|
tome.icon_state = "tome-open"
|
||||||
tome.item_state = "tome-open"
|
tome.item_state = "tome-open"
|
||||||
flick("tome-flickopen",tome)
|
flick("tome-flickopen",tome)
|
||||||
|
playsound(user, "pageturn", 50, 1, -5)
|
||||||
tome.state = TOME_OPEN
|
tome.state = TOME_OPEN
|
||||||
var/spell_name = input(user,"Draw a rune with the help of the Arcane Tome.", "Trace Complete Rune", null) as null|anything in available_runes
|
var/spell_name = input(user,"Draw a rune with the help of the Arcane Tome.", "Trace Complete Rune", null) as null|anything in available_runes
|
||||||
spell = available_runes[spell_name]
|
spell = available_runes[spell_name]
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
var/mob/affecting = null
|
var/mob/affecting = null
|
||||||
var/datum/religion/my_rel = new /datum/religion
|
var/datum/religion/my_rel = new /datum/religion
|
||||||
actions_types = list(/datum/action/item_action/convert)
|
actions_types = list(/datum/action/item_action/convert)
|
||||||
|
rustle_sound = "pageturn"
|
||||||
|
|
||||||
autoignition_temperature = 522 // Kelvin
|
autoignition_temperature = 522 // Kelvin
|
||||||
fire_fuel = 2
|
fire_fuel = 2
|
||||||
|
|||||||
@@ -30,12 +30,13 @@
|
|||||||
var/foldable_amount = 1 // Number of foldables to produce, if any - N3X
|
var/foldable_amount = 1 // Number of foldables to produce, if any - N3X
|
||||||
var/internal_store = 0
|
var/internal_store = 0
|
||||||
var/list/no_storage_slot = new/list()//if the item is equipped in a slot that is contained in this list, the item will act purely as a clothing item and not a storage item (ie plastic bags over head)
|
var/list/no_storage_slot = new/list()//if the item is equipped in a slot that is contained in this list, the item will act purely as a clothing item and not a storage item (ie plastic bags over head)
|
||||||
|
var/rustle_sound = "rustle"
|
||||||
|
|
||||||
/obj/item/weapon/storage/proc/can_use()
|
/obj/item/weapon/storage/proc/can_use()
|
||||||
return TRUE
|
return TRUE
|
||||||
|
|
||||||
/obj/item/weapon/storage/on_mousedrop_to_inventory_slot()
|
/obj/item/weapon/storage/on_mousedrop_to_inventory_slot()
|
||||||
playsound(src, "rustle", 50, 1, -5)
|
playsound(src, rustle_sound, 50, 1, -5)
|
||||||
|
|
||||||
/obj/item/weapon/storage/MouseDropFrom(obj/over_object as obj)
|
/obj/item/weapon/storage/MouseDropFrom(obj/over_object as obj)
|
||||||
if(over_object == usr && (in_range(src, usr) || is_holder_of(usr, src)))
|
if(over_object == usr && (in_range(src, usr) || is_holder_of(usr, src)))
|
||||||
@@ -438,7 +439,7 @@
|
|||||||
..()
|
..()
|
||||||
|
|
||||||
/obj/item/weapon/storage/attack_hand(mob/user as mob)
|
/obj/item/weapon/storage/attack_hand(mob/user as mob)
|
||||||
playsound(src, "rustle", 50, 1, -5)
|
playsound(src, rustle_sound, 50, 1, -5)
|
||||||
|
|
||||||
if(ishuman(user))
|
if(ishuman(user))
|
||||||
var/mob/living/carbon/human/H = user
|
var/mob/living/carbon/human/H = user
|
||||||
|
|||||||
@@ -225,6 +225,8 @@
|
|||||||
if(carved)
|
if(carved)
|
||||||
to_chat(user, "<span class='notice'>The pages of [title] have been cut out!</span>")
|
to_chat(user, "<span class='notice'>The pages of [title] have been cut out!</span>")
|
||||||
return
|
return
|
||||||
|
if (!isobserver(user))
|
||||||
|
playsound(user, "pageturn", 50, 1, -5)
|
||||||
if(src.dat)
|
if(src.dat)
|
||||||
user << browse("<TT><I>Penned by [author].</I></TT> <BR>" + "[dat]", "window=book")
|
user << browse("<TT><I>Penned by [author].</I></TT> <BR>" + "[dat]", "window=book")
|
||||||
if(!isobserver(user))
|
if(!isobserver(user))
|
||||||
|
|||||||
Reference in New Issue
Block a user