defenssives
This commit is contained in:
parent
3b41500364
commit
2e698b3b55
@ -19,27 +19,26 @@
|
|||||||
*CLIENT*
|
*CLIENT*
|
||||||
* general
|
* general
|
||||||
* icons change with %
|
* icons change with %
|
||||||
|
* find new icons for colours / life
|
||||||
|
|
||||||
* game
|
* game
|
||||||
* resolve animations + effects
|
* resolve animations + effects
|
||||||
|
|
||||||
*SERVER*
|
*SERVER*
|
||||||
var / skill info rpc
|
|
||||||
thresholds / bonuses
|
|
||||||
sell cost
|
|
||||||
etc
|
|
||||||
|
|
||||||
change initial vbox to be more intuitive
|
|
||||||
|
|
||||||
siphon might have a prob
|
|
||||||
put ticks on stack at start of phase
|
|
||||||
|
|
||||||
cryp vbox
|
cryp vbox
|
||||||
update defensives in skill.rs
|
update defensives in skill.rs
|
||||||
|
|
||||||
consolidate buffs debuffs and disables
|
consolidate buffs debuffs and disables
|
||||||
no more red/blue
|
no more red/blue
|
||||||
|
|
||||||
|
var / skill info rpc
|
||||||
|
thresholds / bonuses
|
||||||
|
sell cost
|
||||||
|
etc
|
||||||
|
|
||||||
|
siphon might have a prob
|
||||||
|
put ticks on stack at start of phase
|
||||||
|
|
||||||
make strike *really* hit first / resolve at same time?
|
make strike *really* hit first / resolve at same time?
|
||||||
|
|
||||||
## SOON
|
## SOON
|
||||||
|
|||||||
@ -5,9 +5,6 @@ use cryp::{Cryp, CrypEffect, EffectMeta, Stat};
|
|||||||
use vbox::{Var};
|
use vbox::{Var};
|
||||||
|
|
||||||
pub fn resolve(skill: Skill, source: &mut Cryp, target: &mut Cryp, mut resolutions: Vec<Resolution>) -> Resolutions {
|
pub fn resolve(skill: Skill, source: &mut Cryp, target: &mut Cryp, mut resolutions: Vec<Resolution>) -> Resolutions {
|
||||||
let mut rng = thread_rng();
|
|
||||||
let _base: u64 = rng.gen();
|
|
||||||
|
|
||||||
if let Some(disable) = source.disabled(skill) {
|
if let Some(disable) = source.disabled(skill) {
|
||||||
resolutions.push(Resolution::new(source, target).event(Event::Disable { disable, skill }));
|
resolutions.push(Resolution::new(source, target).event(Event::Disable { disable, skill }));
|
||||||
return resolutions;
|
return resolutions;
|
||||||
@ -753,13 +750,26 @@ impl Skill {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn defensive(&self) -> bool {
|
pub fn defensive(&self) -> bool {
|
||||||
|
let mut rng = thread_rng();
|
||||||
|
|
||||||
match self {
|
match self {
|
||||||
Skill::Heal |
|
Skill::Heal |
|
||||||
Skill::Triage |
|
Skill::Triage |
|
||||||
Skill::Empower |
|
Skill::Empower |
|
||||||
Skill::Purify |
|
Skill::Purify |
|
||||||
Skill::Parry |
|
Skill::Parry |
|
||||||
|
Skill::Clutch |
|
||||||
|
Skill::Shield |
|
||||||
|
Skill::Recharge |
|
||||||
|
Skill::Reflect |
|
||||||
|
Skill::Haste |
|
||||||
|
Skill::Invert |
|
||||||
|
Skill::Amplify |
|
||||||
|
Skill::Hostility |
|
||||||
|
Skill::Corrupt |
|
||||||
Skill::Block => true,
|
Skill::Block => true,
|
||||||
|
|
||||||
|
Skill::Banish => rng.gen_bool(0.5),
|
||||||
_ => false,
|
_ => false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user