mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-20 10:29:28 +08:00
opt: use constants to set fast stage move and opsi fast move
This commit is contained in:
@@ -261,14 +261,13 @@ void Cracker::update_gg_factor(double factor) {
|
||||
|
||||
void Cracker::enable_opsi_fast_move() {
|
||||
IS_ENABLED(OPSI_FAST_MOVE)
|
||||
m_original.WorldConst_BaseMoveDuration = m_state["WorldConst"]["BaseMoveDuration"];
|
||||
m_state["WorldConst"]["BaseMoveDuration"] = 0.0;
|
||||
ENABLE(OPSI_FAST_MOVE)
|
||||
}
|
||||
|
||||
void Cracker::disable_opsi_fast_move() {
|
||||
IS_DISABLED(OPSI_FAST_MOVE)
|
||||
m_state["WorldConst"]["BaseMoveDuration"] = m_original.WorldConst_BaseMoveDuration;
|
||||
m_state["WorldConst"]["BaseMoveDuration"] = 0.35;
|
||||
ENABLE(OPSI_FAST_MOVE)
|
||||
}
|
||||
|
||||
@@ -405,9 +404,6 @@ void Cracker::disable_remove_hard_mode_ship_properties_limit() {
|
||||
void Cracker::enable_fast_stage_move() {
|
||||
IS_ENABLED(FAST_STAGE_MOVE_CRACK)
|
||||
|
||||
m_original.ChapterConst_ShipStepDuration = m_state["ChapterConst"]["ShipStepDuration"];
|
||||
m_original.ChapterConst_ShipStepQuickPlayScale = m_state["ChapterConst"]["ShipStepQuickPlayScale"];
|
||||
|
||||
m_state["ChapterConst"]["ShipStepDuration"] = 0.0;
|
||||
m_state["ChapterConst"]["ShipStepQuickPlayScale"] = 0.0;
|
||||
|
||||
@@ -417,8 +413,8 @@ void Cracker::enable_fast_stage_move() {
|
||||
void Cracker::disable_fast_stage_move() {
|
||||
IS_DISABLED(FAST_STAGE_MOVE_CRACK)
|
||||
|
||||
m_state["ChapterConst"]["ShipStepDuration"] = m_original.ChapterConst_ShipStepDuration;
|
||||
m_state["ChapterConst"]["ShipStepQuickPlayScale"] = m_original.ChapterConst_ShipStepQuickPlayScale;
|
||||
m_state["ChapterConst"]["ShipStepDuration"] = 0.5;
|
||||
m_state["ChapterConst"]["ShipStepQuickPlayScale"] = 0.5;
|
||||
|
||||
ENABLE(FAST_STAGE_MOVE_CRACK)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user