Yk1475

New Member
Jan 30, 2023
6
1
There is a problem in 2.3.2.2 slave_auction_buyout.qsrc which about buyout price.

As the txt 'Buyout slave at 2.5x the current bid price'. I should pay 2.5x the current bid price to buy the slave. But I actually paid 3.5x the current bid price to buy the slave.

The issue code(line 2) is:

if sparks >= ((cur_stock_price*5)/2):
sparks -= ((cur_stock_price*5)/2)
auction_phase = 6
stock_sold = stock_limit + 1
else
msg 'You don’t have enough sparks to purchase this slave!'
end

The cause of the problem is auction_phase = 6 will charge 1x of current bid price. So I paid 2.5x + 1x = 3.5x.

My solution is:

if sparks >= ((cur_stock_price*5)/2):
sparks -= ((cur_stock_price*3)/2)
auction_phase = 6
stock_sold = stock_limit + 1
else
msg 'You don’t have enough sparks to purchase this slave!'
end

by the way I send merge request in gidgud, please see it.
 
4.00 star(s) 68 Votes