added tooltips

This commit is contained in:
Vladimir Koshevarov
2022-11-29 19:09:00 +02:00
parent 2167b43c29
commit 73f06d8754
33 changed files with 1264 additions and 250 deletions
+8 -8
View File
@@ -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;
}