Merge pull request #15524 from Kashargul/VorebellyRobotOverlayFixes

Vorebelly robot overlay fixes + VTEC toggle
This commit is contained in:
Heroman3003
2023-11-18 05:05:50 +10:00
committed by GitHub
3 changed files with 15 additions and 5 deletions
+11 -1
View File
@@ -476,6 +476,16 @@
else
stat(null, text("No Cell Inserted!"))
// function to toggle VTEC once installed
/mob/living/silicon/robot/proc/toggle_vtec()
set name = "Toggle VTEC"
set category = "Abilities"
if(speed == -1)
to_chat(src, "<span class='filter_notice'>VTEC module disabled.</span>")
speed = 0
else
to_chat(src, "<span class='filter_notice'>VTEC module enabled.</span>")
speed = -1
// update the status screen display
/mob/living/silicon/robot/Stat()
@@ -895,7 +905,7 @@
if(LAZYLEN(vore_selected.contents) > 0)
for(var/borgfood in vore_selected.contents) //"inspired" (kinda copied) from Chompstation's belly fullness system's procs
if(istype(borgfood, /mob/living))
if(vore_selected.belly_item_mult <= 0) //If mobs dont contribute, dont calculate further
if(vore_selected.belly_mob_mult <= 0) //If mobs dont contribute, dont calculate further
continue
var/mob/living/prey = borgfood //typecast to living
belly_size += (prey.size_multiplier / size_multiplier) / vore_selected.belly_mob_mult //Smaller prey are less filling to larger bellies