예제 #1
0
		protected internal virtual void updateShieldState(BattleFighter defencer, SingleActionRecord record)
		{
			if (defencer.hasState(BattleConstants.MONSTER_SHIELD_FLAG))
			{
				defencer.updateStateRecord(record.FighterInfo);
			}
		}
예제 #2
0
		public static void updateBattleFighterRecord(BattleFighter fighter, BattleTeamInfoRecord teamInfoRecord)
		{
			SingleFighterRecord _singleFightRecord = teamInfoRecord.OrCreateRecord;
			Dictionary<int, int> _propMap = fighter.BattleProp;
			initFighterRecord(fighter, _singleFightRecord);
			foreach (KeyValuePair<int, int> _propEntry in _propMap)
			{
				_singleFightRecord.addProp(_propEntry.Key, _propEntry.Value);
			}
			fighter.updateStateRecord(_singleFightRecord);
			teamInfoRecord.finishCurRecord();
		}