Airship + Unittest (#496)
* wings * update cargo shuttle * update goblin sound * add new unit test * Update CP14EntityTest.cs * Update CP14RitualTest.cs * add buy and sell hints * paper reading * hardwork * clean task * body forkfiltered * Update crystal.yml * more fork flitered * Update basic.yml * Update wild.yml * Update CP14EntityTest.cs * realise pusharing * pusharing alchemical vials * coin disappear works * Fix
This commit is contained in:
@@ -37,11 +37,16 @@ public partial class CP14SharedCurrencySystem : EntitySystem
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
public int GetTotalCurrency(EntityUid uid, CP14CurrencyComponent? currency = null)
|
||||
public int GetTotalCurrency(EntityUid uid)
|
||||
{
|
||||
if (!Resolve(uid, ref currency))
|
||||
if (!TryComp<CP14CurrencyComponent>(uid, out var currency))
|
||||
return 0;
|
||||
|
||||
return GetTotalCurrency(uid, currency);
|
||||
}
|
||||
|
||||
public int GetTotalCurrency(EntityUid uid, CP14CurrencyComponent currency)
|
||||
{
|
||||
var total = currency.Currency;
|
||||
|
||||
if (TryComp<StackComponent>(uid, out var stack))
|
||||
|
||||
Reference in New Issue
Block a user