Construction System. (#87)
* Construction WiP * Construction kinda works! * Lots more construction work. * It mostly works!
This commit is contained in:
committed by
GitHub
parent
f051078c79
commit
d7074bf74f
@@ -85,6 +85,17 @@ namespace Content.Server.GameObjects.Components.Interactable.Tools
|
||||
}
|
||||
}
|
||||
|
||||
public bool TryUse(float value)
|
||||
{
|
||||
if (!Activated || !CanUse(value))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Fuel -= value;
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool CanUse(float value)
|
||||
{
|
||||
return Fuel > value;
|
||||
|
||||
Reference in New Issue
Block a user