Fix cringe 2 (#16145)
This commit is contained in:
@@ -32,7 +32,7 @@ public sealed class KudzuSystem : EntitySystem
|
|||||||
if (growthDamage > 0)
|
if (growthDamage > 0)
|
||||||
{
|
{
|
||||||
GrowingKudzuComponent? growing;
|
GrowingKudzuComponent? growing;
|
||||||
if (!TryComp<GrowingKudzuComponent>(uid, out growing))
|
if (!TryComp(uid, out growing))
|
||||||
{
|
{
|
||||||
growing = AddComp<GrowingKudzuComponent>(uid);
|
growing = AddComp<GrowingKudzuComponent>(uid);
|
||||||
growing.GrowthLevel = 3;
|
growing.GrowthLevel = 3;
|
||||||
@@ -107,6 +107,7 @@ public sealed class KudzuSystem : EntitySystem
|
|||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
public override void Update(float frameTime)
|
public override void Update(float frameTime)
|
||||||
{
|
{
|
||||||
|
var appearanceQuery = GetEntityQuery<AppearanceComponent>();
|
||||||
var query = EntityQueryEnumerator<GrowingKudzuComponent, KudzuComponent>();
|
var query = EntityQueryEnumerator<GrowingKudzuComponent, KudzuComponent>();
|
||||||
var curTime = _timing.CurTime;
|
var curTime = _timing.CurTime;
|
||||||
|
|
||||||
@@ -152,7 +153,7 @@ public sealed class KudzuSystem : EntitySystem
|
|||||||
RemCompDeferred<GrowingKudzuComponent>(uid);
|
RemCompDeferred<GrowingKudzuComponent>(uid);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (EntityManager.TryGetComponent<AppearanceComponent>(uid, out var appearance))
|
if (appearanceQuery.TryGetComponent(uid, out var appearance))
|
||||||
{
|
{
|
||||||
_appearance.SetData(uid, KudzuVisuals.GrowthLevel, grow.GrowthLevel, appearance);
|
_appearance.SetData(uid, KudzuVisuals.GrowthLevel, grow.GrowthLevel, appearance);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -41,4 +41,4 @@
|
|||||||
damageOverlay:
|
damageOverlay:
|
||||||
sprite: Structures/Windows/cracks.rsi
|
sprite: Structures/Windows/cracks.rsi
|
||||||
- type: StaticPrice
|
- type: StaticPrice
|
||||||
price: 60
|
price: 80
|
||||||
|
|||||||
Reference in New Issue
Block a user