Example #1
0
 /// <summary>
 /// 场景剧情消耗金币
 /// </summary>
 public static uint OutGoldSceneQuest(int level, int rate, bool noRandom = false)
 {
     double[] factor = new[] { 0.5, 1, 1, 1.5 };
     rate = (int)(rate * (noRandom ? 1 : factor[MathTool.GetRandom(factor.Length)])) * 3 / 4;
     return((uint)(ExpTree.GetResourceFactor(level) * GoldFactor * rate / 100));
 }
Example #2
0
        /// <summary>
        /// 战斗获得金币
        /// </summary>
        public static uint InGoldFight(int level, bool isPeople)
        {
            uint get = (uint)(ExpTree.GetResourceFactor(level) * GoldFactor / 2);

            return(isPeople ? get : get / 2);
        }