* init * fix vampire polymorph * fix vampire metabolizm * upd * теперь при бане будет указываться номер раунда, хд * fix * fix * fix locale * change speed * new nukeops shuttle * FULLY FIX EBANY VAMPIRE OBJECTIVES * fix faction * fix drank objective * try fix status icon * fix changelings * fix zombie faction * vampire status icon fix * upd roadmap * vampire blood amount alert * drain objective up * upd * upd
24 lines
No EOL
663 B
C#
24 lines
No EOL
663 B
C#
using Content.Shared.Vampire.Components;
|
|
using Content.Shared.FixedPoint;
|
|
|
|
namespace Content.Shared.Vampire;
|
|
|
|
public sealed class SharedVampireSystem : EntitySystem
|
|
{
|
|
public FixedPoint2 GetBloodEssence(EntityUid vampire)
|
|
{
|
|
if (!TryComp<VampireComponent>(vampire, out var comp))
|
|
return 0;
|
|
|
|
if (comp.Balance != null && comp.Balance.TryGetValue(VampireComponent.CurrencyProto, out var val))
|
|
return val;
|
|
|
|
return 0;
|
|
}
|
|
|
|
public void SetAlertBloodAmount(VampireAlertComponent component, int amount)
|
|
{
|
|
component.BloodAmount = amount;
|
|
Dirty(component.Owner, component);
|
|
}
|
|
} |