mirror of
https://github.com/gooba42/adventureland.git
synced 2026-10-15 02:39:29 -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) {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user