Skip to content

Commit

Permalink
Shock Core implosion damage can now be set.
Browse files Browse the repository at this point in the history
  • Loading branch information
Moffein committed Jan 10, 2023
1 parent 9347688 commit 83e0126
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ public class ShootableShockCore : ShootableProjectileComponent
public GameObject explosionEffectPrefab;
public float radius = 20f;
public float delayBeforeExplosion = 0.5f;
public float implosionDamageCoefficient = 2f;

private float explosionTimer = 0f;
private bool beginTimer = false;
Expand Down Expand Up @@ -60,7 +61,7 @@ public override void OnShootActions(DamageInfo damageInfo)
ProjectileDamage pd = base.gameObject.GetComponent<ProjectileDamage>();
if (pd)
{
pd.damage *= 2f;
pd.damage *= implosionDamageCoefficient;
}

DamageAPI.ModdedDamageTypeHolderComponent mdc = base.gameObject.GetComponent<DamageAPI.ModdedDamageTypeHolderComponent>();
Expand Down

0 comments on commit 83e0126

Please sign in to comment.