Skip to content

Commit

Permalink
Landen ABK fix (#4979)
Browse files Browse the repository at this point in the history
Do not credit me, credit Landen.

This completely fixes Advanced brute kits.
They function as intended, you get the bonus if you have high Bio, if you have no charges, or not enough charges for a surgery step, you cannot complete it

Co-authored-by: CDB <[email protected]>
  • Loading branch information
AysheDaArtist and cdb-is-not-good authored Jan 28, 2024
1 parent f5b7267 commit 26712fb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@
if(istype(I, /obj/item/stack))
var/obj/item/stack/S = I
if(do_after(user, WORKTIME_NORMAL - user_stat_level, parent))
if(prob(10 + user_stat_level))
if(prob(10 + user_stat_level)&& S.amount > 0)
free_use = TRUE
is_treated = TRUE
else
else if(S.amount >= charges_needed)
is_treated = S.use(charges_needed)
else if(istype(I)) // check for using items without stacks
else if(istype(I) && !istype(I, /obj/item/stack))
is_treated = TRUE
qdel(I)
if(is_treated)
Expand Down

0 comments on commit 26712fb

Please sign in to comment.