public void ProcessResult(bool result,StatePlayer player, MonsterInfo monster) { //無損戰鬥 if (result) { player.addExp((int)(monster.getExp() * ComboBonusSystem.Instance.getComboBonus())); } else { List<passiveSkill> list = MainGame.Instance.m_StatePlayer.playerSkillList; int resultDamage = monster.getAttack(); for(int i = 0;i < list.Count; i++) { if(list[i].getType() == passiveSkill.passiveSkillType.DECREASE_DAMAGE) { resultDamage = (int)(resultDamage * ((passiveSkill_decreaseDamage)list[i]).getValue()); } } MessageManager.Instance.showMask(Color.red, 0.1f); MessageManager.Instance.showInfoMessage("HP - " + monster.getAttack(), Color.red); player.hpDamage(monster.getAttack()); player.addExp((int)(monster.getExp() * ComboBonusSystem.Instance.getComboBonus())); } TouchControl.mybtnClone.showContent(); }