Fixes missing insight when fulfilling a goal while already inspired#8494
Fixes missing insight when fulfilling a goal while already inspired#8494the-soy-coder wants to merge 3 commits intodiscordia-space:masterfrom
Conversation
|
There was a bug that allowed insight to rise over 100 on artist, might want to check if its still present, as that would allow some potential exploits. |
|
artist_bench now capped at 100 insight maximum investment even if you evade the prompt, should be fine |
| ins_used = input("How much of your insight will you dedicate to this work? 40-[H.sanity.insight > 100 ? 100 : H.sanity.insight]","Insight Used") as null|num | ||
| else | ||
| ins_used = H.sanity.insight | ||
| ins_used = H.sanity.insight > 100 ? 100 : H.sanity.insight |
There was a problem hiding this comment.
Maybe clamp function would fit better here? Ternary operator looks kinda messy.
There was a problem hiding this comment.
Factually incorrect, ternary operator is the best operator, and hardly worse than a function call.
There was a problem hiding this comment.
thats right brotha
|
why dis shit failing doe? |
Proc |
its actually a bit more unusual than that.. apparently it tries to out-lift a turf (which can't move), so its either null because 1)the turf is marked for deletion and so are all its contents , or 2)theres a massive fuck up somewhere thats allowing turfs to be picked up. Edit: took a look at it , i misread the situation at first(oops), objects were getting marked for delayed deletion by the garbage systems and were stalled out because they were still being referenced(stuff shouldn't delete in the clamps) |
About The Pull Request
You lose ALL insight when you finish focusing, no matter if it goes over 100. This fixes the edge cases when you fulfill a goal right before finishing your current insight, and thus lose an additional 100 insight.
Why It's Good For The Game
Testing
Changelog
🆑 Buttcrack Berry Picker
fix: fixed losing all insight when you focus, instead of just your max cap
/:cl: