整理一下
This commit is contained in:
@@ -9,5 +9,6 @@ namespace WulaFallenEmpire
|
||||
public DamageDef damageDef; // Custom damage type
|
||||
public float damageAmount = -1f; // Custom damage amount
|
||||
public float armorPenetration = -1f; // Custom armor penetration
|
||||
public float maxRange = 1000f; // Default max range for beams
|
||||
}
|
||||
}
|
||||
@@ -150,7 +150,7 @@ namespace WulaFallenEmpire
|
||||
Vector3 direction = (cell - position).ToVector3().normalized;
|
||||
|
||||
// Define a maximum range to prevent infinite loops or excessively long beams
|
||||
float maxRange = 1000f; // Increased range for longer beams
|
||||
float maxRange = this.ExcaliburProps.maxRange; // Use configurable max range
|
||||
|
||||
for (float i = 0; i < maxRange; i += 1f)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user