mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-01-03 22:13:50 +00:00
[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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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}
|
||||
/>
|
||||
|
||||
@@ -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
Reference in New Issue
Block a user