mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-24 06:01:26 -05:00
Fix bug with Scrollsmith that would expand inventory beyond size of 42
This commit is contained in:
+1
-5
@@ -5621,11 +5621,7 @@ function init_io() {
|
|||||||
if (player.gold < cost) {
|
if (player.gold < cost) {
|
||||||
return fail_response("gold_not_enough");
|
return fail_response("gold_not_enough");
|
||||||
}
|
}
|
||||||
if (
|
if (!can_add_items(player, list_to_pseudo_items([[needed[ograde], scrolltype]]))) {
|
||||||
!can_add_items(player, list_to_pseudo_items([[neeeded[ograde], scrolltype]]), {
|
|
||||||
space: 1,
|
|
||||||
})
|
|
||||||
) {
|
|
||||||
return fail_response("inv_size");
|
return fail_response("inv_size");
|
||||||
}
|
}
|
||||||
player.gold -= cost;
|
player.gold -= cost;
|
||||||
|
|||||||
Reference in New Issue
Block a user