[MIRROR] Vorebelly robot overlay fixes + VTEC toggle (#7237)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
Co-authored-by: Selis <selis@xynolabs.com>
This commit is contained in:
CHOMPStation2
2023-11-17 14:03:43 -07:00
committed by GitHub
parent 9a0a9ca329
commit 45143b3cf8
5 changed files with 17 additions and 7 deletions

View File

@@ -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

View File

@@ -483,6 +483,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()
@@ -902,7 +912,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

View File

@@ -932,7 +932,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}
/>

View File

@@ -965,7 +965,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}
/>

File diff suppressed because one or more lines are too long