Fix bug with Scrollsmith that would expand inventory beyond size of 42

This commit is contained in:
FreezePhoenix
2024-03-04 20:04:10 -05:00
committed by GitHub
parent 4cc4f73b51
commit 20717550cf
+1 -5
View File
@@ -5621,11 +5621,7 @@ function init_io() {
if (player.gold < cost) {
return fail_response("gold_not_enough");
}
if (
!can_add_items(player, list_to_pseudo_items([[neeeded[ograde], scrolltype]]), {
space: 1,
})
) {
if (!can_add_items(player, list_to_pseudo_items([[needed[ograde], scrolltype]]))) {
return fail_response("inv_size");
}
player.gold -= cost;