writelines
This commit is contained in:
@@ -20,7 +20,7 @@ namespace PeopleVille.Equipment
|
|||||||
public void Use(Person person)
|
public void Use(Person person)
|
||||||
{
|
{
|
||||||
person.Health += HealthPoints;
|
person.Health += HealthPoints;
|
||||||
Console.WriteLine($"");
|
Console.WriteLine($"{person} ate food and healed {HealthPoints}");
|
||||||
person.Inventory.Remove(this);
|
person.Inventory.Remove(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace PeopleVille.Equipment
|
|||||||
public void Use(Person target)
|
public void Use(Person target)
|
||||||
{
|
{
|
||||||
target.Health -= this.Damage;
|
target.Health -= this.Damage;
|
||||||
Console.WriteLine($"");
|
Console.WriteLine($"{target.Name} has been shot and took {Damage}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user