public NowHpHarmBullet(float multiByNowHp, OpponentTargetType type, BattleCharacter fromWho, int harm) { MultiByNowHp = multiByNowHp; Type = type; FromWho = fromWho; Harm = harm; }
public PushBullet(OpponentTargetType type, int pushBlock, BattleCharacter fromWho, long harm) { Type = type; PushBlock = pushBlock; FromWho = fromWho; Harm = harm; }
public SplashRandomOneHarmBullet(int harm, BattleCharacter fromWho, OpponentTargetType type, int splashHarm) { Harm = harm; FromWho = fromWho; Type = type; SplashHarm = splashHarm; }
public SplashAllBullet(OpponentTargetType type, BattleCharacter fromWho, int harm, int splashHarm) { Type = type; FromWho = fromWho; Harm = harm; SplashHarm = splashHarm; }
public ExecuteBullet(BattleCharacter fromWho, OpponentTargetType type, int harm, float damageAddMultiBlackHpPercent) { FromWho = fromWho; Type = type; Harm = harm; DamageAddMultiBlackHpPercent = damageAddMultiBlackHpPercent; }
public AddDamageByOpTeamBullet(float multiByNum, OpponentTargetType type, BattleCharacter fromWho, long harm) { MultiByNum = multiByNum; Type = type; FromWho = fromWho; Harm = harm; }
public MissAndDamageMoreBullet(OpponentTargetType type, bool hitOrMiss, BattleCharacter fromWho, int harm, int heal) { Type = type; HitOrMiss = hitOrMiss; FromWho = fromWho; Harm = harm; Heal = heal; }
public HarmAndHealBullet(OpponentTargetType type, BattleCharacter fromWho, long heal, long harm, bool hitOrMiss) { Type = type; FromWho = fromWho; Heal = heal; Harm = harm; HitOrMiss = hitOrMiss; }
public AttackBulletWithToSelfOrMiss(OpponentTargetType type, SelfTargetType selfTargetType, BattleBuffs.IBattleBuff[] battleBuffs, int harm, bool hitOrMiss, BattleCharacter fromWho) { Type = type; SelfTargetType = selfTargetType; BattleBuffs = battleBuffs; Harm = harm; HitOrMiss = hitOrMiss; FromWho = fromWho; }
public AttackBulletWithToOpponentWhenHitOrMiss(OpponentTargetType type, OpponentTargetType buffTargetType, BattleBuffs.IBattleBuff[] battleBuffs, BattleCharacter fromWho, int harm, bool hitOrMiss) { Type = type; BuffTargetType = buffTargetType; BattleBuffs = battleBuffs; FromWho = fromWho; Harm = harm; HitOrMiss = hitOrMiss; }
public SummonUnitBullet(BattleCharacter summonCharacter, int maxNum, bool isOnHead, BattleCharacter fromWho, long harm, OpponentTargetType type) { SummonCharacter = summonCharacter; MaxNum = maxNum; IsOnHead = isOnHead; FromWho = fromWho; Harm = harm; Type = type; }
public FocusBullet(OpponentTargetType type, BattleCharacter fromWho, long harm, bool hitOrMiss, BattleBuffs.IFocusBuff[] battleBuffs) { Type = type; FromWho = fromWho; Harm = harm; HitOrMiss = hitOrMiss; BattleBuffs = battleBuffs; }
public static (BattleCharacter?, BattleCharacter[]) GetFirstAndOtherTargetByOpponentType( List <BattleCharacter> team, OpponentTargetType opponentTargetType) { var characters = team.Where(x => x.KeyStatus == KeyStatus.Alive).ToList(); if (!characters.Any()) { return(null, new BattleCharacter[] { }); } BattleCharacter battleCharacter = opponentTargetType switch { OpponentTargetType.FirstOpponent => characters.First(), OpponentTargetType.WeakestOpponent => characters.OrderBy(x => x.CharacterBattleAttribute.NowHp).First(), _ => throw new ArgumentOutOfRangeException(nameof(opponentTargetType), opponentTargetType, null) }; var battleCharacters = characters.Where(x => x != battleCharacter).ToArray(); return(battleCharacter, battleCharacters); }
public StandardHarmBullet(BattleCharacter fromWho, OpponentTargetType type, long harm) { FromWho = fromWho; Type = type; Harm = harm; }
public JustKillBullet(OpponentTargetType type, BattleCharacter fromWho) { Type = type; FromWho = fromWho; Harm = 1; }