예제 #1
0
 def get_dps(self, item, reload):
     cycle_parameters = self.get_cycle_parameters(item, reload)
     if cycle_parameters is None:
         return DmgStats(0, 0, 0, 0)
     volley = self.get_volley(item)
     return DmgStats(volley.em, volley.thermal, volley.kinetic,
                     volley.explosive, 1 / cycle_parameters.average_time)
예제 #2
0
파일: kamikaze.py 프로젝트: pyfa-org/eos
 def get_volley(self, item):
     if not self.get_cycles_until_reload(item):
         return DmgStats(0, 0, 0, 0)
     em = item.attrs.get(AttrId.fighter_ability_kamikaze_dmg_em, 0)
     therm = item.attrs.get(AttrId.fighter_ability_kamikaze_dmg_therm, 0)
     kin = item.attrs.get(AttrId.fighter_ability_kamikaze_dmg_kin, 0)
     expl = item.attrs.get(AttrId.fighter_ability_kamikaze_dmg_expl, 0)
     squad_size = self.get_squad_size(item)
     return DmgStats(em, therm, kin, expl, squad_size)
예제 #3
0
파일: missiles.py 프로젝트: pyfa-org/eos
 def get_volley(self, item):
     if not self.get_cycles_until_reload(item):
         return DmgStats(0, 0, 0, 0)
     em = item.attrs.get(AttrId.fighter_ability_missiles_dmg_em, 0)
     therm = item.attrs.get(AttrId.fighter_ability_missiles_dmg_therm, 0)
     kin = item.attrs.get(AttrId.fighter_ability_missiles_dmg_kin, 0)
     expl = item.attrs.get(AttrId.fighter_ability_missiles_dmg_expl, 0)
     dmg_mult = item.attrs.get(AttrId.fighter_ability_missiles_dmg_mult, 1)
     squad_size = self.get_squad_size(item)
     mult = dmg_mult * squad_size
     return DmgStats(em, therm, kin, expl, mult)
예제 #4
0
파일: base.py 프로젝트: pyfa-org/eos
 def get_volley(self, item):
     if not self.get_cycles_until_reload(item):
         return DmgStats(0, 0, 0, 0)
     base_dmg_item = self._get_base_dmg_item(item)
     if base_dmg_item is None:
         return DmgStats(0, 0, 0, 0)
     em = base_dmg_item.attrs.get(AttrId.em_dmg, 0)
     therm = base_dmg_item.attrs.get(AttrId.therm_dmg, 0)
     kin = base_dmg_item.attrs.get(AttrId.kin_dmg, 0)
     expl = base_dmg_item.attrs.get(AttrId.expl_dmg, 0)
     mult = item.attrs.get(AttrId.dmg_mult)
     return DmgStats(em, therm, kin, expl, mult)
예제 #5
0
파일: launch_bomb.py 프로젝트: pyfa-org/eos
 def get_volley(self, item):
     if not self.get_cycles_until_reload(item):
         return DmgStats(0, 0, 0, 0)
     charge = self.get_charge(item)
     if charge is None:
         return DmgStats(0, 0, 0, 0)
     charge_defeff_id = charge._type_default_effect_id
     if (charge_defeff_id != EffectId.bomb_launching
             or charge_defeff_id not in charge._running_effect_ids):
         return DmgStats(0, 0, 0, 0)
     em = charge.attrs.get(AttrId.em_dmg, 0)
     therm = charge.attrs.get(AttrId.therm_dmg, 0)
     kin = charge.attrs.get(AttrId.kin_dmg, 0)
     expl = charge.attrs.get(AttrId.expl_dmg, 0)
     squad_size = self.get_squad_size(item)
     return DmgStats(em, therm, kin, expl, squad_size)
예제 #6
0
 def get_volley(self, item):
     volley = TurretDmgEffect.get_volley(self, item)
     try:
         spoolup_mult = item.attrs[AttrId.dmg_mult_bonus_max]
     except KeyError:
         return volley
     return DmgStats(volley.em, volley.thermal, volley.kinetic,
                     volley.explosive, 1 + spoolup_mult)
예제 #7
0
 def get_volley(self, item):
     if not self.get_cycles_until_reload(item):
         return DmgStats(0, 0, 0, 0)
     # If module can cycle until reload, it means we can assume that there's
     # a charge loaded
     charge = self.get_charge(item)
     charge_defeff_id = charge._type_default_effect_id
     if (charge_defeff_id is None
             or charge_defeff_id not in charge._running_effect_ids
             or charge_defeff_id not in (EffectId.missile_launching,
                                         EffectId.fof_missile_launching,
                                         EffectId.bomb_launching)):
         return DmgStats(0, 0, 0, 0)
     em = charge.attrs.get(AttrId.em_dmg, 0)
     therm = charge.attrs.get(AttrId.therm_dmg, 0)
     kin = charge.attrs.get(AttrId.kin_dmg, 0)
     expl = charge.attrs.get(AttrId.expl_dmg, 0)
     return DmgStats(em, therm, kin, expl)
예제 #8
0
파일: kamikaze.py 프로젝트: pyfa-org/eos
 def get_applied_dps(self, item, tgt_data, reload):
     return DmgStats(0, 0, 0, 0)
예제 #9
0
파일: kamikaze.py 프로젝트: pyfa-org/eos
 def get_dps(self, item, reload):
     return DmgStats(0, 0, 0, 0)
예제 #10
0
파일: emp_wave.py 프로젝트: pyfa-org/eos
 def get_volley(self, item):
     em = item.attrs.get(AttrId.em_dmg, 0)
     therm = item.attrs.get(AttrId.therm_dmg, 0)
     kin = item.attrs.get(AttrId.kin_dmg, 0)
     expl = item.attrs.get(AttrId.expl_dmg, 0)
     return DmgStats(em, therm, kin, expl)