private void RewardExp(ref int index) { var expGet = (uint)(GameResourceBook.InExpSceneQuest(level, config.RewardExp) * (10 + hardness) / 10); //难度越高经验越多 if (expGet > 0) { UserProfile.Profile.InfoBasic.AddExp((int)expGet); var pictureRegion = ComplexRegion.GetResShowRegion(index, new Point(pos.X + 3 + 20 + (index - 1) * 70, pos.Y + 3 + 25), 60, ImageRegionCellType.Exp, (int)expGet); vRegion.AddRegion(pictureRegion); index++; } }
private void OnWin() { result = evt.ChooseTarget(1); isEndFight = true; if (BlessManager.FightWinAddHealth > 0) { var healthAdd = GameResourceBook.InHealthSceneQuest(BlessManager.FightWinAddHealth * 100); if (healthAdd > 0) { UserProfile.Profile.InfoBasic.AddHealth(healthAdd); } } if (BlessManager.FightWinAddExp > 0) { var expAdd = GameResourceBook.InExpSceneQuest(level, BlessManager.FightWinAddExp * 100); if (expAdd > 0) { UserProfile.Profile.InfoBasic.AddExp((int)expAdd); } } }