createDebrisField

open fun createDebrisField(id: String, radius: Float, density: Float, duration: Float, glowDuration: Float, salvageXp: Integer, defenderProbability: Float, defenderFaction: String, defenderFP: Integer, detectionMult: Float, discoverable: Boolean, discoveryXp: Integer, orbitCenter: SectorEntityToken, orbitStartAngle: Float, orbitRadius: Float, orbitDays: Float): SectorEntityToken

Creates a debris field with generic commodity loot to salvage

Return

Parameters

id

field ID

radius

field radius in su (clamped to 1000)

density

field visual density

duration

field duration in days (set to a negative value for a permanent field)

glowDuration

time in days with glowing debris

salvageXp

XP awarded for salvaging (<0 to use the default)

defenderProbability

chance of an enemy fleet guarding the debris field (<0 to ignore)

defenderFaction

defender's faction

defenderFP

defender fleet's size in Fleet Points

detectionMult

detection distance multiplier (<0 to use the default)

discoverable

awards XP when found

discoveryXp

XP awarded when found (<0 to use the default)

orbitCenter

entity orbited

orbitStartAngle

orbit starting angle

orbitRadius

orbit radius

orbitDays

orbit period