mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #3820 from CHOMPStation2/upstream-merge-12409
[MIRROR] Vore Stats
This commit is contained in:
@@ -21,6 +21,10 @@ GLOBAL_VAR_INIT(items_sold_shift_roundstat, 0)
|
||||
GLOBAL_VAR_INIT(disposals_flush_shift_roundstat, 0)
|
||||
GLOBAL_VAR_INIT(rocks_drilled_roundstat, 0)
|
||||
GLOBAL_VAR_INIT(mech_destroyed_roundstat, 0)
|
||||
GLOBAL_VAR_INIT(prey_eaten_roundstat, 0) //VOREStation Edit - Obviously
|
||||
GLOBAL_VAR_INIT(prey_absorbed_roundstat, 0) //VOREStation Edit - Obviously
|
||||
GLOBAL_VAR_INIT(prey_digested_roundstat, 0) //VOREStation Edit - Obviously
|
||||
GLOBAL_VAR_INIT(items_digested_roundstat, 0) //VOREStation Edit - Obviously
|
||||
|
||||
/hook/roundend/proc/RoundTrivia()//bazinga
|
||||
var/list/valid_stats_list = list() //This is to be populated with the good shit
|
||||
@@ -50,6 +54,17 @@ GLOBAL_VAR_INIT(mech_destroyed_roundstat, 0)
|
||||
else if(GLOB.disposals_flush_shift_roundstat > 40)
|
||||
valid_stats_list.Add("The disposal system flushed a whole [GLOB.disposals_flush_shift_roundstat] times for this shift. We should really invest in waste treatement.")
|
||||
|
||||
//VOREStation Add Start - Vore stats lets gooooo
|
||||
if(GLOB.prey_eaten_roundstat > 0)
|
||||
valid_stats_list.Add("A total of [GLOB.prey_eaten_roundstat] individuals were eaten today!")
|
||||
if(GLOB.prey_digested_roundstat > 0)
|
||||
valid_stats_list.Add("A total of [GLOB.prey_digested_roundstat] individuals were digested today!")
|
||||
if(GLOB.prey_absorbed_roundstat > 0)
|
||||
valid_stats_list.Add("A total of [GLOB.prey_absorbed_roundstat] individuals were absorbed today!")
|
||||
if(GLOB.items_digested_roundstat > 0)
|
||||
valid_stats_list.Add("A total of [GLOB.items_digested_roundstat] items were digested today!")
|
||||
//VOREStation Add End
|
||||
|
||||
if(LAZYLEN(valid_stats_list))
|
||||
to_world("<B>Shift trivia!</B>")
|
||||
|
||||
|
||||
@@ -482,6 +482,9 @@
|
||||
for(var/mob/living/M in contents)
|
||||
M.updateVRPanel()
|
||||
|
||||
if(prey.ckey)
|
||||
GLOB.prey_eaten_roundstat++
|
||||
|
||||
// Get the line that should show up in Examine message if the owner of this belly
|
||||
// is examined. By making this a proc, we not only take advantage of polymorphism,
|
||||
// but can easily make the message vary based on how many people are inside, etc.
|
||||
@@ -748,6 +751,8 @@
|
||||
M.temp_language_sources += owner
|
||||
handle_absorb_langs(M, owner)
|
||||
|
||||
GLOB.prey_absorbed_roundstat++
|
||||
|
||||
to_chat(M, "<span class='notice'>[absorb_alert_prey]</span>")
|
||||
to_chat(owner, "<span class='notice'>[absorb_alert_owner]</span>")
|
||||
if(M.noisy) //Mute drained absorbee hunger if enabled.
|
||||
@@ -867,6 +872,7 @@
|
||||
items_preserved |= item
|
||||
else
|
||||
owner.adjust_nutrition((nutrition_percent / 100) * 5 * digested)
|
||||
GLOB.items_digested_roundstat++
|
||||
if(isrobot(owner))
|
||||
var/mob/living/silicon/robot/R = owner
|
||||
R.cell.charge += ((nutrition_percent / 100) * 50 * digested)
|
||||
|
||||
@@ -312,6 +312,9 @@
|
||||
to_chat(owner, "<span class='notice'>[digest_alert_owner]</span>")
|
||||
to_chat(M, "<span class='notice'>[digest_alert_prey]</span>")
|
||||
|
||||
if(M.ckey)
|
||||
GLOB.prey_digested_roundstat++
|
||||
|
||||
if((mode_flags & DM_FLAG_LEAVEREMAINS) && M.digest_leave_remains)
|
||||
handle_remains_leaving(M)
|
||||
digestion_death(M)
|
||||
|
||||
Reference in New Issue
Block a user