some config key renames to match code
This commit is contained in:
parent
fb8d882af0
commit
7b6cce48b9
@ -79,7 +79,7 @@ object ServerConfig {
|
|||||||
return obj
|
return obj
|
||||||
}
|
}
|
||||||
|
|
||||||
val LABORATORY_LAMP_LIGHT_LENGTH: Int by specBuilder.comment("In blocks").defineInRange("laboratoryLampLightLength", 6, 1, 128)
|
val LABORATORY_LAMP_LIGHT_LENGTH: Int by specBuilder.comment("In blocks").defineInRange("LABORATORY_LAMP_LIGHT_LENGTH", 6, 1, 128)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
specBuilder.comment("Energy batteries balance values").push("energyBatteries")
|
specBuilder.comment("Energy batteries balance values").push("energyBatteries")
|
||||||
@ -126,7 +126,7 @@ object ServerConfig {
|
|||||||
|
|
||||||
val PLATE_PRESS = BlockEnergyStorageImpl.makeConfigEntry(specBuilder, MNames.PLATE_PRESS)
|
val PLATE_PRESS = BlockEnergyStorageImpl.makeConfigEntry(specBuilder, MNames.PLATE_PRESS)
|
||||||
val STORAGE_POWER_SUPPLIER = BlockEnergyStorageImpl.makeConfigEntry(specBuilder, MNames.STORAGE_POWER_SUPPLIER, capacity = Decimal(100_000), throughput = Decimal(320))
|
val STORAGE_POWER_SUPPLIER = BlockEnergyStorageImpl.makeConfigEntry(specBuilder, MNames.STORAGE_POWER_SUPPLIER, capacity = Decimal(100_000), throughput = Decimal(320))
|
||||||
val STORAGE_INTERFACES = BlockEnergyStorageImpl.makeConfigEntry(specBuilder, "storage_interfaces", capacity = Decimal(10_000))
|
val STORAGE_INTERFACES = BlockEnergyStorageImpl.makeConfigEntry(specBuilder, "STORAGE_INTERFACES", capacity = Decimal(10_000))
|
||||||
val ITEM_MONITOR = BlockEnergyStorageImpl.makeConfigEntry(specBuilder, MNames.ITEM_MONITOR)
|
val ITEM_MONITOR = BlockEnergyStorageImpl.makeConfigEntry(specBuilder, MNames.ITEM_MONITOR)
|
||||||
val DRIVE_VIEWER = BlockEnergyStorageImpl.makeConfigEntry(specBuilder, MNames.DRIVE_VIEWER)
|
val DRIVE_VIEWER = BlockEnergyStorageImpl.makeConfigEntry(specBuilder, MNames.DRIVE_VIEWER)
|
||||||
val DRIVE_RACK = BlockEnergyStorageImpl.makeConfigEntry(specBuilder, MNames.DRIVE_RACK, capacity = Decimal(80_000))
|
val DRIVE_RACK = BlockEnergyStorageImpl.makeConfigEntry(specBuilder, MNames.DRIVE_RACK, capacity = Decimal(80_000))
|
||||||
@ -142,7 +142,7 @@ object ServerConfig {
|
|||||||
.comment("This setting controls whenever to regenerate small amount of energy while eating as Android")
|
.comment("This setting controls whenever to regenerate small amount of energy while eating as Android")
|
||||||
.comment("And also whenever to regenerate energy while in peaceful")
|
.comment("And also whenever to regenerate energy while in peaceful")
|
||||||
.comment("If this is disabled, any (technically) excess hunger will be nullified, unless playing on peaceful difficulty.")
|
.comment("If this is disabled, any (technically) excess hunger will be nullified, unless playing on peaceful difficulty.")
|
||||||
.define("regenerateEnergy", true)
|
.define("REGENERATE_ENERGY", true)
|
||||||
|
|
||||||
object NanobotsRegeneration {
|
object NanobotsRegeneration {
|
||||||
val COOLDOWN: List<Int> by specBuilder
|
val COOLDOWN: List<Int> by specBuilder
|
||||||
@ -153,15 +153,15 @@ object ServerConfig {
|
|||||||
.comment("")
|
.comment("")
|
||||||
.comment("Wording in pseudocode:")
|
.comment("Wording in pseudocode:")
|
||||||
.comment("if (ticksSinceTakingDamage >= cooldownConfigOption[healTicks /* or config's biggest index, whichever is smaller */]) {")
|
.comment("if (ticksSinceTakingDamage >= cooldownConfigOption[healTicks /* or config's biggest index, whichever is smaller */]) {")
|
||||||
.comment(" healTicks = min(healTicks + 1, this.level /* ability level */)")
|
.comment(" healTicks = min(healTicks + 1, level /* ability level */)")
|
||||||
.comment(" ticksSinceTakingDamage = 0")
|
.comment(" ticksSinceTakingDamage = 0")
|
||||||
.comment(" this.ply.heal(...)")
|
.comment(" this.ply.heal(...)")
|
||||||
.comment("}")
|
.comment("}")
|
||||||
.defineList("cooldown", { mutableListOf(80, 60, 40, 20) }) { it is Int }
|
.defineList("COOLDOWN", { mutableListOf(80, 60, 40, 20) }) { it is Int }
|
||||||
|
|
||||||
val ENERGY_PER_HITPOINT by specBuilder
|
val ENERGY_PER_HITPOINT by specBuilder
|
||||||
.comment("Energy required to regenerate 1 health point (half a heart)")
|
.comment("Energy required to regenerate 1 health point (half a heart)")
|
||||||
.defineDecimal("energyPerHitpoint", Decimal(800))
|
.defineDecimal("ENERGY_PER_HITPOINT", Decimal(800))
|
||||||
}
|
}
|
||||||
|
|
||||||
val ANDROID_ENERGY_PER_HUNGER_POINT by specBuilder.defineDecimal("energyPerHunger", Decimal(2000), Decimal.ZERO)
|
val ANDROID_ENERGY_PER_HUNGER_POINT by specBuilder.defineDecimal("energyPerHunger", Decimal(2000), Decimal.ZERO)
|
||||||
@ -171,13 +171,13 @@ object ServerConfig {
|
|||||||
|
|
||||||
object EnderTeleporter {
|
object EnderTeleporter {
|
||||||
init {
|
init {
|
||||||
specBuilder.comment("Ender Teleporter ability").push("ender_teleporter")
|
specBuilder.comment("Ender Teleporter ability").push("EnderTeleporter")
|
||||||
}
|
}
|
||||||
|
|
||||||
val ENERGY_COST by specBuilder.defineDecimal("energyCost", Decimal(4096), Decimal.ZERO)
|
val ENERGY_COST by specBuilder.defineDecimal("ENERGY_COST", Decimal(4096), Decimal.ZERO)
|
||||||
val COOLDOWN: Int by specBuilder.comment("In ticks").defineInRange("cooldown", 40, 0, Int.MAX_VALUE)
|
val COOLDOWN: Int by specBuilder.comment("In ticks").defineInRange("COOLDOWN", 40, 0, Int.MAX_VALUE)
|
||||||
val MAX_PHASE_DISTANCE: Int by specBuilder.comment("Determines how much blocks can we 'phase' through to teleport on solid surface").defineInRange("maxPhaseDistance", 6, 0, Int.MAX_VALUE)
|
val MAX_PHASE_DISTANCE: Int by specBuilder.comment("Determines how much blocks can we 'phase' through to teleport on solid surface").defineInRange("MAX_PHASE_DISTANCE", 6, 0, Int.MAX_VALUE)
|
||||||
val MAX_DISTANCE: Double by specBuilder.comment("In blocks, euclidean distance").defineInRange("maxDistance", 12.0, 2.0, Int.MAX_VALUE.toDouble())
|
val MAX_DISTANCE: Double by specBuilder.comment("In blocks, euclidean distance").defineInRange("MAX_DISTANCE", 12.0, 2.0, Int.MAX_VALUE.toDouble())
|
||||||
|
|
||||||
init {
|
init {
|
||||||
specBuilder.pop()
|
specBuilder.pop()
|
||||||
@ -186,13 +186,13 @@ object ServerConfig {
|
|||||||
|
|
||||||
object AndroidJumpBoost {
|
object AndroidJumpBoost {
|
||||||
init {
|
init {
|
||||||
specBuilder.comment("Jump boost ability").push("jump_boost")
|
specBuilder.comment("Jump boost ability").push("AndroidJumpBoost")
|
||||||
}
|
}
|
||||||
|
|
||||||
val ENERGY_COST by specBuilder.defineDecimal("energyCost", Decimal(1024), Decimal.ZERO)
|
val ENERGY_COST by specBuilder.defineDecimal("ENERGY_COST", Decimal(1024), Decimal.ZERO)
|
||||||
val POWER: Double by specBuilder.comment("The jump height on jump boost, as (level + 1) of feature, in meters per second").defineInRange("power", 6.0, 0.0, Double.MAX_VALUE)
|
val POWER: Double by specBuilder.comment("The jump height on jump boost, as (level + 1) of feature, in meters per second").defineInRange("POWER", 6.0, 0.0, Double.MAX_VALUE)
|
||||||
val BASE_COOLDOWN: Int by specBuilder.comment("In ticks").defineInRange("baseCooldown", 40, 0, Int.MAX_VALUE)
|
val BASE_COOLDOWN: Int by specBuilder.comment("In ticks").defineInRange("BASE_COOLDOWN", 40, 0, Int.MAX_VALUE)
|
||||||
val COOLDOWN_REDUCTION: Int by specBuilder.comment("In ticks, per level of feature").defineInRange("cooldownReduction", 20, 0, Int.MAX_VALUE)
|
val COOLDOWN_REDUCTION: Int by specBuilder.comment("In ticks, per level of feature").defineInRange("COOLDOWN_REDUCTION", 20, 0, Int.MAX_VALUE)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
specBuilder.pop()
|
specBuilder.pop()
|
||||||
@ -201,12 +201,12 @@ object ServerConfig {
|
|||||||
|
|
||||||
object AndroidItemMagnet {
|
object AndroidItemMagnet {
|
||||||
init {
|
init {
|
||||||
specBuilder.comment("Item magnet ability").push("item_magnet")
|
specBuilder.comment("Item magnet ability").push("AndroidItemMagnet")
|
||||||
}
|
}
|
||||||
|
|
||||||
val POWER_DRAW by specBuilder.comment("Per tick per stack").defineDecimal("powerDraw", Decimal(8), Decimal.ZERO)
|
val POWER_DRAW by specBuilder.comment("Per tick per stack").defineDecimal("POWER_DRAW", Decimal(8), Decimal.ZERO)
|
||||||
val RADIUS_HORIZONTAL: Double by specBuilder.defineInRange("radiusHorizontal", 6.0, 0.0, Double.MAX_VALUE / 4.0)
|
val RADIUS_HORIZONTAL: Double by specBuilder.defineInRange("RADIUS_HORIZONTAL", 6.0, 0.0, Double.MAX_VALUE / 4.0)
|
||||||
val RADIUS_VERTICAL: Double by specBuilder.defineInRange("radiusVertical", 3.0, 0.0, Double.MAX_VALUE / 4.0)
|
val RADIUS_VERTICAL: Double by specBuilder.defineInRange("RADIUS_VERTICAL", 3.0, 0.0, Double.MAX_VALUE / 4.0)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
specBuilder.pop()
|
specBuilder.pop()
|
||||||
@ -215,22 +215,22 @@ object ServerConfig {
|
|||||||
|
|
||||||
object Shockwave {
|
object Shockwave {
|
||||||
init {
|
init {
|
||||||
specBuilder.comment("Shockwave ability").push("shockwave")
|
specBuilder.comment("Shockwave ability").push("Shockwave")
|
||||||
}
|
}
|
||||||
|
|
||||||
val TERMINAL_VELOCITY: Double by specBuilder.comment("In meters per second vertically").defineInRange("terminalVelocity", 5.6, 0.0)
|
val TERMINAL_VELOCITY: Double by specBuilder.comment("In meters per second vertically").defineInRange("TERMINAL_VELOCITY", 5.6, 0.0)
|
||||||
val ACCELERATION: Double by specBuilder.comment("In meters per second vertically").defineInRange("acceleration", 4.0, 0.0)
|
val ACCELERATION: Double by specBuilder.comment("In meters per second vertically").defineInRange("ACCELERATION", 4.0, 0.0)
|
||||||
val COOLDOWN: Int by specBuilder.comment("In ticks").defineInRange("cooldown", 30, 1)
|
val COOLDOWN: Int by specBuilder.comment("In ticks").defineInRange("COOLDOWN", 30, 1)
|
||||||
val RADIUS_HORIZONTAL: Double by specBuilder.comment("In meters").defineInRange("radiusHorizontal", 4.0, 0.0)
|
val RADIUS_HORIZONTAL: Double by specBuilder.comment("In meters").defineInRange("RADIUS_HORIZONTAL", 4.0, 0.0)
|
||||||
val RADIUS_VERTICAL: Double by specBuilder.comment("In meters").defineInRange("radiusVertical", 1.0, 0.0)
|
val RADIUS_VERTICAL: Double by specBuilder.comment("In meters").defineInRange("RADIUS_VERTICAL", 1.0, 0.0)
|
||||||
|
|
||||||
val RADIUS_HORIZONTAL_WARDEN: Double by specBuilder.comment("In meters, when searching for Warden").defineInRange("radiusHorizontalWarden", 16.0, 0.0)
|
val RADIUS_HORIZONTAL_WARDEN: Double by specBuilder.comment("In meters, when searching for Warden").defineInRange("RADIUS_HORIZONTAL_WARDEN", 16.0, 0.0)
|
||||||
val RADIUS_VERTICAL_WARDEN: Double by specBuilder.comment("In meters, when searching for Warden").defineInRange("radiusVerticalWarden", 6.0, 0.0)
|
val RADIUS_VERTICAL_WARDEN: Double by specBuilder.comment("In meters, when searching for Warden").defineInRange("RADIUS_VERTICAL_WARDEN", 6.0, 0.0)
|
||||||
|
|
||||||
val BREAK_BLOCKS: Boolean by specBuilder.comment("Break blocks without any blast resistance").define("breakBlocks", true)
|
val BREAK_BLOCKS: Boolean by specBuilder.comment("Break blocks without any blast resistance").define("BREAK_BLOCKS", true)
|
||||||
val DAMAGE: Double by specBuilder.comment("Max potential damage done by shockwave").defineInRange("damage", 12.0, 0.0, Float.MAX_VALUE.toDouble())
|
val DAMAGE: Double by specBuilder.comment("Max potential damage done by shockwave").defineInRange("DAMAGE", 12.0, 0.0, Float.MAX_VALUE.toDouble())
|
||||||
val WARDEN_DAMAGE_MULT: Double by specBuilder.defineInRange("wardenDamageMultiplier", 4.0, 0.0, Float.MAX_VALUE.toDouble())
|
val WARDEN_DAMAGE_MULT: Double by specBuilder.defineInRange("WARDEN_DAMAGE_MULT", 4.0, 0.0, Float.MAX_VALUE.toDouble())
|
||||||
val ENERGY_COST by specBuilder.defineDecimal("energyCost", Decimal(2048), Decimal.ZERO)
|
val ENERGY_COST by specBuilder.defineDecimal("ENERGY_COST", Decimal(2048), Decimal.ZERO)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
specBuilder.pop()
|
specBuilder.pop()
|
||||||
@ -250,7 +250,7 @@ object ServerConfig {
|
|||||||
specBuilder.comment("Tweaking of exosuits").push("exosuitPlayer")
|
specBuilder.comment("Tweaking of exosuits").push("exosuitPlayer")
|
||||||
}
|
}
|
||||||
|
|
||||||
val INFINITE_EXOSUIT_UPGRADES: Boolean by specBuilder.comment("Allows to apply the same upgrade over and over again.", "Obviously completely breaks balance.").define("infinite_upgrades", false)
|
val INFINITE_EXOSUIT_UPGRADES: Boolean by specBuilder.comment("Allows to apply the same upgrade over and over again.", "Obviously completely breaks balance.").define("INFINITE_EXOSUIT_UPGRADES", false)
|
||||||
|
|
||||||
init {
|
init {
|
||||||
specBuilder.pop()
|
specBuilder.pop()
|
||||||
|
Loading…
Reference in New Issue
Block a user