改转接defname
This commit is contained in:
Binary file not shown.
@@ -45,6 +45,7 @@
|
|||||||
<damageDef>Bomb</damageDef>
|
<damageDef>Bomb</damageDef>
|
||||||
<damageAmount>450</damageAmount>
|
<damageAmount>450</damageAmount>
|
||||||
<armorPenetration>2</armorPenetration>
|
<armorPenetration>2</armorPenetration>
|
||||||
|
<beamDefName>ExcaliburBeam</beamDefName>
|
||||||
</li>
|
</li>
|
||||||
</verbs>
|
</verbs>
|
||||||
<weaponTags>
|
<weaponTags>
|
||||||
|
|||||||
@@ -10,5 +10,6 @@ namespace WulaFallenEmpire
|
|||||||
public float damageAmount = -1f; // Custom damage amount
|
public float damageAmount = -1f; // Custom damage amount
|
||||||
public float armorPenetration = -1f; // Custom armor penetration
|
public float armorPenetration = -1f; // Custom armor penetration
|
||||||
public float maxRange = 1000f; // Default max range for beams
|
public float maxRange = 1000f; // Default max range for beams
|
||||||
|
public string beamDefName = "ExcaliburBeam"; // Default beam def name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -95,7 +95,7 @@ namespace WulaFallenEmpire
|
|||||||
List<IntVec3> allAffectedCells = this.AffectedCells(this.currentTarget);
|
List<IntVec3> allAffectedCells = this.AffectedCells(this.currentTarget);
|
||||||
|
|
||||||
// Create a beam for this specific burst
|
// Create a beam for this specific burst
|
||||||
Thing_ExcaliburBeam beam = (Thing_ExcaliburBeam)GenSpawn.Spawn(DefDatabase<ThingDef>.GetNamed("ExcaliburBeam", true), this.CasterPawn.Position, this.CasterPawn.Map);
|
Thing_ExcaliburBeam beam = (Thing_ExcaliburBeam)GenSpawn.Spawn(DefDatabase<ThingDef>.GetNamed(this.ExcaliburProps.beamDefName, true), this.CasterPawn.Position, this.CasterPawn.Map);
|
||||||
beam.caster = this.CasterPawn;
|
beam.caster = this.CasterPawn;
|
||||||
beam.targetCell = this.currentTarget.Cell;
|
beam.targetCell = this.currentTarget.Cell;
|
||||||
beam.damageAmount = this.damageAmount;
|
beam.damageAmount = this.damageAmount;
|
||||||
|
|||||||
Reference in New Issue
Block a user