internal bool DefaultToOpened;
[ViewVariables(VVAccess.ReadWrite)]
+ [DataField("transferAmount")]
public FixedPoint2 TransferAmount { get; [UsedImplicitly] private set; } = FixedPoint2.New(5);
[ViewVariables(VVAccess.ReadWrite)]
if (component.Pressurized &&
!component.Opened &&
_random.Prob(0.25f) &&
- _solutionContainerSystem.TryGetDrainableSolution(uid, out var interactions))
+ _solutionContainerSystem.TryGetSolution(uid, component.SolutionName, out var interactions))
{
component.Opened = true;
UpdateAppearance(component);
return true;
}
- if (!_solutionContainerSystem.TryGetDrainableSolution(item, out var drinkSolution) ||
+ if (!_solutionContainerSystem.TryGetSolution(item, drink.SolutionName, out var drinkSolution) ||
drinkSolution.Volume <= 0)
{
_popupSystem.PopupEntity(Loc.GetString("drink-component-try-use-drink-is-empty",