Merge branch 'master' of ssh://cryps.gg:40022/~/cryps
This commit is contained in:
commit
514b9b0b53
@ -22,7 +22,7 @@ ensure all skills impl
|
||||
Skill::Slay -> red attack with bonus somethingorother for blue / maim no healing
|
||||
Hatred -> damage received converted into bonus dmg
|
||||
|
||||
change inversion to several events
|
||||
siphon test
|
||||
|
||||
make parry semi-aggressive
|
||||
constants
|
||||
|
||||
@ -520,6 +520,10 @@ impl Game {
|
||||
self.log.push(format!("[{:}] {:} {:?} {:} INVERTED",
|
||||
speed, source.name, skill, target.name)),
|
||||
|
||||
Event::Reflection { skill } =>
|
||||
self.log.push(format!("[{:}] {:} {:?} {:} REFLECTED",
|
||||
speed, source.name, skill, target.name)),
|
||||
|
||||
Event::Effect { skill, effect, duration } =>
|
||||
self.log.push(format!("[{:}] {:} {:?} {:} {:?} {:}T",
|
||||
speed, source.name, skill, target.name, effect, duration)),
|
||||
|
||||
@ -78,6 +78,7 @@ pub enum Event {
|
||||
Healing { skill: Skill, amount: u64, overhealing: u64 },
|
||||
Recharge { skill: Skill, red: u64, blue: u64 },
|
||||
Inversion { skill: Skill },
|
||||
Reflection { skill: Skill },
|
||||
Effect { skill: Skill, effect: Effect, duration: u8 },
|
||||
Removal { effect: Effect },
|
||||
Evasion { skill: Skill, evasion_rating: u64 },
|
||||
@ -630,6 +631,7 @@ impl Skill {
|
||||
if source.affected(Effect::Reflect) {
|
||||
return results;
|
||||
}
|
||||
results.push(Resolution::new(source, target).event(Event::Reflection { skill: *self }));
|
||||
return self.resolve(target, source);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user