remove construct var
This commit is contained in:
parent
9a5ecd4bd4
commit
194373d0a6
@ -713,7 +713,6 @@ impl Construct {
|
||||
fn red_healing(&mut self, amount: usize) -> Vec<Event> {
|
||||
let mut events = vec![];
|
||||
if self.is_ko() { return events; }
|
||||
let construct = self.id;
|
||||
|
||||
let mods = self.effects.iter()
|
||||
.filter(|e| e.effect.modifications().contains(&Stat::RedHealingReceived))
|
||||
@ -764,7 +763,6 @@ impl Construct {
|
||||
fn green_healing(&mut self, amount: usize) -> Vec<Event> {
|
||||
let mut events = vec![];
|
||||
if self.is_ko() { return events; }
|
||||
let construct = self.id;
|
||||
|
||||
let mods = self.effects.iter()
|
||||
.filter(|e| e.effect.modifications().contains(&Stat::GreenHealingReceived))
|
||||
@ -784,7 +782,7 @@ impl Construct {
|
||||
let overhealing = modified_power - healing;
|
||||
|
||||
events.push(Event::Healing {
|
||||
construct,
|
||||
construct: self.id,
|
||||
amount: healing,
|
||||
overhealing,
|
||||
colour: Colour::Green,
|
||||
@ -797,7 +795,7 @@ impl Construct {
|
||||
let delta = current_green_life - self.stat(Stat::GreenLife);
|
||||
|
||||
events.push(Event::Damage {
|
||||
construct,
|
||||
construct: self.id,
|
||||
amount: delta,
|
||||
mitigation: 0,
|
||||
colour: Colour::Green,
|
||||
@ -805,7 +803,7 @@ impl Construct {
|
||||
});
|
||||
|
||||
if self.is_ko() {
|
||||
events.push(Event::Ko { construct });
|
||||
events.push(Event::Ko { construct: self.id });
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -816,7 +814,6 @@ impl Construct {
|
||||
fn blue_healing(&mut self, amount: usize) -> Vec<Event> {
|
||||
let mut events = vec![];
|
||||
if self.is_ko() { return events; }
|
||||
let construct = self.id;
|
||||
|
||||
let mods = self.effects.iter()
|
||||
.filter(|e| e.effect.modifications().contains(&Stat::BlueHealingReceived))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user