暂存
This commit is contained in:
@@ -8,6 +8,7 @@ namespace ArachnaeSwarm
|
||||
{
|
||||
public class CruiseMissileProperties : DefModExtension
|
||||
{
|
||||
public bool isDummy = false;
|
||||
public DamageDef customDamageDef;
|
||||
public int customDamageAmount = 5;
|
||||
public float customExplosionRadius = 1.1f;
|
||||
@@ -38,11 +39,19 @@ namespace ArachnaeSwarm
|
||||
private Vector3 Randdd;
|
||||
private Vector3 position2;
|
||||
public Vector3 ExPos;
|
||||
public bool isDummy = false;
|
||||
|
||||
public override void ExposeData()
|
||||
{
|
||||
base.ExposeData();
|
||||
Scribe_Values.Look(ref isDummy, "isDummy", false);
|
||||
}
|
||||
|
||||
public override void SpawnSetup(Map map, bool respawningAfterLoad)
|
||||
{
|
||||
base.SpawnSetup(map, respawningAfterLoad);
|
||||
settings = def.GetModExtension<CruiseMissileProperties>() ?? new CruiseMissileProperties();
|
||||
this.isDummy = settings.isDummy;
|
||||
}
|
||||
|
||||
private void RandFactor()
|
||||
@@ -113,6 +122,11 @@ namespace ArachnaeSwarm
|
||||
var map = base.Map;
|
||||
base.Impact(hitThing, blockedByShield);
|
||||
|
||||
if (isDummy)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
DoExplosion(
|
||||
base.Position,
|
||||
map,
|
||||
|
||||
Reference in New Issue
Block a user