fix stuff n tings

This commit is contained in:
ntr
2019-06-10 21:45:24 +10:00
parent b250860eb2
commit 2596b88b75
8 changed files with 28 additions and 30 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ pub enum TimeControl {
impl TimeControl {
fn vbox_time_seconds(&self) -> i64 {
match self {
TimeControl::Standard => 120,
TimeControl::Standard => 180,
TimeControl::Slow => 240,
TimeControl::Practice => panic!("practice vbox seconds called"),
}
@@ -85,7 +85,7 @@ impl TimeControl {
match self {
TimeControl::Practice => None,
_ => Some(Utc::now()
.checked_add_signed(Duration::milliseconds(self.vbox_time_seconds() * 1000 + resolution_time_ms))
.checked_add_signed(Duration::milliseconds(self.game_time_seconds() * 1000 + resolution_time_ms))
.expect("could not set game phase end")),
}
}
+1 -1
View File
@@ -1251,7 +1251,7 @@ fn bash(source: &mut Construct, target: &mut Construct, mut results: Resolutions
}
}
let amount = source.red_power().pct(skill.multiplier().saturating_mul(cds));
let amount = source.red_power().pct(skill.multiplier().pct(100 + 45u64.saturating_mul(cds)));
target.deal_red_damage(skill, amount)
.into_iter()
.for_each(|e| results.push(Resolution::new(source, target).event(e).stages(LogStages::PostOnly)));