Rewrite and simplify Inventory Menu, various fixes for item effects
This commit is contained in:
@@ -49,9 +49,18 @@ public class VTComponent : IVTComponent
|
||||
_currentVT.OnNext(cappedAmount);
|
||||
}
|
||||
|
||||
public void RaiseMaximumVT(int raiseAmount)
|
||||
public void RaiseMaximumVT(int raiseAmount, bool restoreVT = true)
|
||||
{
|
||||
_maximumVT.OnNext(raiseAmount);
|
||||
Restore(raiseAmount);
|
||||
_maximumVT.OnNext(_maximumVT.Value + raiseAmount);
|
||||
if (restoreVT)
|
||||
Restore(raiseAmount);
|
||||
}
|
||||
|
||||
public void SetMaximumVT(int vt)
|
||||
{
|
||||
_maximumVT.OnNext(vt);
|
||||
|
||||
if (_currentVT.Value > _maximumVT.Value)
|
||||
_currentVT.OnNext(_maximumVT.Value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user