改转接defname
This commit is contained in:
@@ -10,5 +10,6 @@ namespace WulaFallenEmpire
|
||||
public float damageAmount = -1f; // Custom damage amount
|
||||
public float armorPenetration = -1f; // Custom armor penetration
|
||||
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);
|
||||
|
||||
// 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.targetCell = this.currentTarget.Cell;
|
||||
beam.damageAmount = this.damageAmount;
|
||||
|
||||
Reference in New Issue
Block a user