Skip to content

Commit

Permalink
Removed video presets
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCymaera committed Oct 13, 2024
1 parent e23c644 commit 1807246
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 182 deletions.
163 changes: 0 additions & 163 deletions src/main/kotlin/com/heledron/sky_torch/presets.kt
Original file line number Diff line number Diff line change
Expand Up @@ -95,167 +95,4 @@ fun presetShockwaveVisualizer() {
AppState.options.shockwave.markDestroyedBlocks = true
AppState.options.shockwave.cameraShake.magnitude = 0.0
AppState.options.shockwave.flyingBlockChance = 0.0
}

fun presetShockwaveOnly() {
AppState.options.boreDistance = 0

AppState.options.flySpeed = .0
AppState.options.randomnessMagnitude = .0

AppState.options.burnWave.count = 0
AppState.options.burnWave.delayedCount = 0
AppState.options.flashBurn.horizontalCount = 0

AppState.options.shockwave = default.shockwave
}



fun presetStage1() {
presetDefault()

// show laser and disable everything else
AppState.options.duration = 10000000

AppState.options.boreDistance = 0

AppState.options.flySpeed = .0
AppState.options.randomnessMagnitude = .0

AppState.options.burnWave.count = 0
AppState.options.burnWave.delayedCount = 0
AppState.options.burnWave.burnBlocks = 0
AppState.options.shockwave.count = 0
AppState.options.flashBurn.horizontalCount = 0

AppState.options.applyNightVision = false
}

fun presetStage2() {
presetStage1()

// show radiation wave
AppState.options.duration = default.duration
AppState.options.flashBurn.horizontalCount = default.flashBurn.horizontalCount
AppState.options.flashBurn.debugDuration = 20 * 5
}

fun presetStage3() {
presetStage2()
AppState.options.flashBurn.debugDuration = 0

// show burn wave
AppState.options.burnWave.count = 80
AppState.options.burnWave.delayedCount = 0
AppState.options.burnWave.durationMax = 20 * 20
AppState.options.burnWave.durationMin = AppState.options.burnWave.durationMax - 1
AppState.options.burnWave.disableRotation = true
AppState.options.burnWave.disableSmartRendering = true
AppState.options.burnWave.palette = BlockPalette.GLASS_ONLY
AppState.options.burnWave.airDragCoefficient = .0
}

fun presetStage4() {
presetStage3()

// add random rotation
AppState.options.burnWave.disableRotation = false
}

fun presetStage5() {
presetStage4()

// use better block palette
AppState.options.burnWave.palette = BlockPalette.ORANGE_WITHOUT_TRAIL
}

fun presetStage6() {
presetStage5()

// use smart rendering
AppState.options.burnWave.disableSmartRendering = false
}

fun presetStage7() {
presetStage6()

// limit reach
AppState.options.burnWave.durationMax = default.burnWave.durationMax
AppState.options.burnWave.durationMin = default.burnWave.durationMin
AppState.options.burnWave.airDragCoefficient = default.burnWave.airDragCoefficient
}

fun presetStage8() {
presetStage7()

// use animated palette
AppState.options.burnWave.palette = BlockPalette.ORANGE
}

fun presetStage9() {
presetStage8()

// burn blocks
AppState.options.burnWave.disableHeat = true
AppState.options.burnWave.burnBlocks = default.burnWave.burnBlocks
}

fun presetStage10() {
presetStage9()

// enable shockwave
AppState.options.shockwave.count = default.shockwave.count
AppState.options.shockwave.cameraShake.magnitude = .0
AppState.options.shockwave.destructionRadius = .0
AppState.options.shockwave.flyingBlockChance = .0
}

fun presetStage11() {
presetStage10()

// enable camera shake
AppState.options.shockwave.cameraShake = default.shockwave.cameraShake
}

fun presetStage12() {
presetStage11()

// enable destruction
AppState.options.shockwave.destructionRadius = default.shockwave.destructionRadius
}

fun presetStage13() {
presetStage12()

// enable flying blocks
AppState.options.shockwave.flyingBlockChance = default.shockwave.flyingBlockChance
}


fun presetStage14() {
presetStage13()

// delayed explosions
AppState.options.burnWave = default.burnWave
}

fun presetStage15() {
presetStage14()

// laser movement
AppState.options.flySpeed = default.flySpeed
AppState.options.randomnessMagnitude = default.randomnessMagnitude
}

fun presetStage16() {
presetStage15()

// night vision
AppState.options.applyNightVision = true
}

fun presetStage17() {
// default
presetDefault()
}
19 changes: 0 additions & 19 deletions src/main/kotlin/com/heledron/sky_torch/registerCommands.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,26 +37,7 @@ fun registerCommands() {

"big" to ::presetBig,

"stage1" to ::presetStage1,
"stage2" to ::presetStage2,
"stage3" to ::presetStage3,
"stage4" to ::presetStage4,
"stage5" to ::presetStage5,
"stage6" to ::presetStage6,
"stage7" to ::presetStage7,
"stage8" to ::presetStage8,
"stage9" to ::presetStage9,
"stage10" to ::presetStage10,
"stage11" to ::presetStage11,
"stage12" to ::presetStage12,
"stage13" to ::presetStage13,
"stage14" to ::presetStage14,
"stage15" to ::presetStage15,
"stage16" to ::presetStage16,
"stage17" to ::presetStage17,

"shockwaveVisualizer" to ::presetShockwaveVisualizer,
"shockwaveOnly" to ::presetShockwaveOnly,

"enableFlicker" to ::presetEnableFlicker,
"disableFlicker" to ::presetDisableFlicker,
Expand Down

0 comments on commit 1807246

Please sign in to comment.