added tooltips
This commit is contained in:
@@ -1,29 +1,29 @@
|
||||
public class Stat
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public float Value { get; set; }
|
||||
public double Price { get; set; }
|
||||
public double Quantity { get; set; }
|
||||
public decimal Value { get; set; }
|
||||
public decimal Price { get; set; }
|
||||
public decimal Quantity { get; set; }
|
||||
|
||||
public Stat(string name, float startValue)
|
||||
public Stat(string name, decimal startValue)
|
||||
{
|
||||
Name = name;
|
||||
Value = startValue;
|
||||
}
|
||||
|
||||
public Stat(string name, float price, float quantity)
|
||||
public Stat(string name, decimal price, decimal quantity)
|
||||
{
|
||||
Name = name;
|
||||
Price = price;
|
||||
Quantity = quantity;
|
||||
}
|
||||
|
||||
public void increase(float byAmount)
|
||||
public void increase(decimal byAmount)
|
||||
{
|
||||
Value += byAmount;
|
||||
}
|
||||
|
||||
public bool deduct(float amount)
|
||||
public bool deduct(decimal amount)
|
||||
{
|
||||
if (Value >= amount)
|
||||
{
|
||||
@@ -33,7 +33,7 @@ public class Stat
|
||||
return false;
|
||||
}
|
||||
|
||||
public void forceDeduct(float amount)
|
||||
public void forceDeduct(decimal amount)
|
||||
{
|
||||
Value -= amount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user