Skip to content

Commit 5f730eb

Browse files
committed
fix(runtime): fix price scale in Game.market.getOrderById
1 parent 14ddd4a commit 5f730eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/game/market.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ exports.make = function(runtimeData, intents, register) {
4242
if(!runtimeData.market.orders.all[id]) {
4343
return null;
4444
}
45-
return JSON.parse(JSON.stringify(runtimeData.market.orders.all[id]));
45+
var result = JSON.parse(JSON.stringify(runtimeData.market.orders.all[id]));
46+
result.price /= 1000;
47+
return result;
4648
}),
4749

4850
createOrder: register.wrapFn(function(type, resourceType, price, totalAmount, roomName) {

0 commit comments

Comments
 (0)