Added buy/points/sell command
This commit is contained in:
1 parent
64cb948038
commit
219c9024bd
8 files changed
+281
-8
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package com.alttd.objects;
|
||||
|
||||
import com.alttd.config.WorthConfig;
|
||||
import com.alttd.util.Utilities;
|
||||
|
||||
public final class Price {
|
||||
@@ -12,7 +13,7 @@ public final class Price {
|
||||
|
||||
public Price(double price) {
|
||||
this.price = price;
|
||||
this.points = (int) price;
|
||||
this.points = (int) (Math.floor(price / WorthConfig.POINT_MOD) + 1);
|
||||
}
|
||||
|
||||
public static Price addPrice(Price one, Price two) {
|
||||
|
||||
Reference in new issue
Block a user