mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 14:08:44 +01:00
Merge pull request #2283 from Verkister/hengor
Adds toggleable hunger growls to vore panel.
This commit is contained in:
@@ -68,6 +68,13 @@ var/global/list/death_sounds = list(
|
||||
'sound/vore/death9.ogg',
|
||||
'sound/vore/death10.ogg')
|
||||
|
||||
var/global/list/hunger_sounds = list(
|
||||
'sound/vore/growl1.ogg',
|
||||
'sound/vore/growl2.ogg',
|
||||
'sound/vore/growl3.ogg',
|
||||
'sound/vore/growl4.ogg',
|
||||
'sound/vore/growl5.ogg')
|
||||
|
||||
var/global/list/vore_sounds = list(
|
||||
"Gulp" = 'sound/vore/gulp.ogg',
|
||||
"Insert" = 'sound/vore/insert.ogg',
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
var/openpanel = 0 // Is the vore panel open?
|
||||
var/conceal_nif = 0 // Do they wish to conceal their NIF from examine?
|
||||
var/nif_examine = "There's a certain spark to their eyes" //The examine text of their NIF. This is the default placeholder.
|
||||
var/noisy = 0 // Toggle audible hunger.
|
||||
|
||||
//
|
||||
// Hook for generic creation of stuff on new creatures
|
||||
@@ -178,6 +179,15 @@
|
||||
if(B.internal_contents.len)
|
||||
B.process_Life() //AKA 'do bellymodes_vr.dm'
|
||||
|
||||
if(noisy > 0 && nutrition < 100 && prob(10))
|
||||
var/growlsound = pick(hunger_sounds)
|
||||
if(nutrition < 50)
|
||||
for(var/mob/hearer in range(1,src))
|
||||
hearer << sound(growlsound,volume=80)
|
||||
else
|
||||
for(var/mob/hearer in range(1,src))
|
||||
hearer << sound(growlsound,volume=35)
|
||||
|
||||
if(air_master.current_cycle%90 != 1) return //Occasionally do supercleanups.
|
||||
for (var/I in vore_organs)
|
||||
var/datum/belly/B = vore_organs[I]
|
||||
|
||||
@@ -273,6 +273,7 @@
|
||||
dat += "<a href='?src=\ref[src];saveprefs=1'>Save Prefs</a>"
|
||||
dat += "<a href='?src=\ref[src];refresh=1'>Refresh</a>"
|
||||
dat += "<a href='?src=\ref[src];setflavor=1'>Set Flavor</a>"
|
||||
dat += "<br><a href='?src=\ref[src];togglenoisy=1'>Toggle Hunger Noises</a>"
|
||||
|
||||
switch(user.digestable)
|
||||
if(1)
|
||||
@@ -765,5 +766,15 @@
|
||||
if(user.client.prefs_vr)
|
||||
user.client.prefs_vr.digestable = user.digestable
|
||||
|
||||
if(href_list["togglenoisy"])
|
||||
var/choice = alert(user, "Toggle audible hunger noises. Currently: [user.noisy ? "Enabled" : "Disabled"]", "", "Enable audible hunger", "Cancel", "Disable audible hunger")
|
||||
switch(choice)
|
||||
if("Cancel")
|
||||
return 0
|
||||
if("Enable audible hunger")
|
||||
user.noisy = 1
|
||||
if("Disable audible hunger")
|
||||
user.noisy = 0
|
||||
|
||||
//Refresh when interacted with, returning 1 makes vore_look.Topic update
|
||||
return 1
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user