Skip to content

Commit

Permalink
fix: change shopsell price mod to use shop inv instead of player inv
Browse files Browse the repository at this point in the history
  • Loading branch information
Indio3 committed Feb 6, 2025
1 parent 27697f7 commit 4a64483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/src/scripts/shop/scripts/shop.rs2
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ return ($value);
// Sell value at a specific stack count
[proc,adjusted_item_cost_selling](obj $obj, int $diff)(int)
def_int $cost = oc_cost($obj);
return (~calc_shop_value($cost, %shop_haggle, %shop_buy, ~price_mod(inv, $diff, $obj)));
return (~calc_shop_value($cost, %shop_haggle, %shop_buy, ~price_mod(%shop, $diff, $obj)));

// Calculate the amount of items a player has to sell relative to a desired amount
[proc,calculate_items_amount_sold](obj $item, int $sell_amount)(int)
Expand Down

0 comments on commit 4a64483

Please sign in to comment.