MagicAsteroidBeltTerrainPlugin

This is a drop-in replacement for the vanilla AsteroidBeltTerrainPlugin. It allows configuration of:

  • chance of impact
  • movement force
  • chance of damaging impact
  • chance of damaging impact per ship
  • impact damage
  • impact damage per ship

For example usage, see Roider Union by SafariJohn.

Author

SafariJohn, Tartiflette

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun advance(amount: Float)
Link copied to clipboard
open fun applyEffect(entity: SectorEntityToken, days: Float)
Link copied to clipboard
open fun createTooltip(tooltip: TooltipMakerAPI, expanded: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun getNameAOrAn(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun hasAIFlag(flag: Any): Boolean
Link copied to clipboard
open fun hasTooltip(): Boolean
Link copied to clipboard
open fun init(terrainId: String, entity: SectorEntityToken, param: Any)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun render(layer: CampaignEngineLayers, viewport: ViewportAPI)
Link copied to clipboard
open fun renderOnMap(factor: Float, alphaMult: Float)
Link copied to clipboard
open fun reportAsteroidPersisted(asteroid: SectorEntityToken)

Properties

Link copied to clipboard
Link copied to clipboard
val IMPACT_CHANCE: String = "magicAsteroidImpactChance"
Link copied to clipboard
val IMPACT_DAMAGE: String = "magicAsteroidImpactDamage"
Link copied to clipboard
val IMPACT_DAMAGE_CHANCE: String = "magicAsteroidImpactDamageChance"
Link copied to clipboard
val IMPACT_DURATION: String = "magicAsteroidImpactDuration"
Link copied to clipboard
val IMPACT_FORCE: String = "magicAsteroidImpactforce"
Link copied to clipboard
val IMPACT_RECENT: String = "$recentImpact"
Link copied to clipboard
val IMPACT_SKIPPED: String = "$skippedImpacts"
Link copied to clipboard
val IMPACT_TIMEOUT: String = "$asteroidImpactTimeout"
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val MAX_TIMEOUT: Float = 0.15f
Link copied to clipboard
Link copied to clipboard
val MIN_TIMEOUT: Float = 0.05f
Link copied to clipboard
val PROB_PER_SKIP: Float = 0.15f