Skip to content

Commit

Permalink
[HOTFIX] Fix Blob Chemical (#998)
Browse files Browse the repository at this point in the history
* Hotfix Healing

* Ooops
  • Loading branch information
Roudenn authored Jan 11, 2025
1 parent ec2e67f commit 71d27ec
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions Content.Server/Backmen/Blob/Systems/BlobTileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,17 @@ private void OnPulsed(EntityUid uid, BlobTileComponent component, BlobTileGetPul

private void HealTile(Entity<BlobTileComponent> ent, Entity<BlobCoreComponent> core)
{
var healCore = ent.Comp.HealthOfPulse;
var healCore = new DamageSpecifier();
var modifier = 1.0f;

if (core.Comp.CurrentChem == BlobChemType.RegenerativeMateria)
{
foreach (var keyValuePair in ent.Comp.HealthOfPulse.DamageDict)
{
healCore.DamageDict.Add(keyValuePair.Key, keyValuePair.Value * 2);
}
modifier = 2.0f;
}

foreach (var keyValuePair in ent.Comp.HealthOfPulse.DamageDict)
{
healCore.DamageDict.TryAdd(keyValuePair.Key, keyValuePair.Value * modifier);
}

_damageableSystem.TryChangeDamage(ent, healCore);
Expand Down

0 comments on commit 71d27ec

Please sign in to comment.