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
@@ -86,9 +86,9 @@
/obj/item/borg/upgrade/vtec/action(var/mob/living/silicon/robot/R)
if(..()) return 0
if(R.speed == -1)
if(R.speed == -1 || (/mob/living/silicon/robot/proc/toggle_vtec in R.verbs))
return 0
R.verbs += /mob/living/silicon/robot/proc/toggle_vtec
R.speed--
return 1
@@ -214,4 +214,4 @@
R.add_language(LANGUAGE_TERMINUS, 1)
R.add_language(LANGUAGE_ZADDAT, 1)
return 1
return 1
+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
+1 -1
View File
@@ -763,7 +763,7 @@ const VoreSelectedMobTypeBellyButtons = (props, context) => {
<LabeledList.Item label="Item Vorebelly Size Mult">
<Button
onClick={() =>
act('set_attribute', { attribute: 'b_belly_item_multi' })
act('set_attribute', { attribute: 'b_belly_item_mult' })
}
content={belly_item_mult}
/>