Esempio n. 1
0
        private static eReward ModifyGochaByLvWithGoblin(Random lordRandom, int goblinCode, int myLv, int otherLv, int itemDropRate, out int modify)
        {
            modify = 1;

            if (false == m_matchGoblin.ContainsKey(goblinCode))
            {
                return(eReward.None);
            }

            eReward kind = m_matchGoblin[goblinCode];
            int     mm   = otherLv - myLv;

            if (mm < -12)
            {
                mm = -mm;

                int remain = 50 / mm;

                int hit = lordRandom.Next(0, 100);
                if (remain < hit)
                {
                    return(eReward.None);
                }
            }

            return(kind);
        }
Esempio n. 2
0
        public Puzzle(eType trigger, eType puzzle, eReward reward, string name = "None", string desc = "None")
        {
            mName = name;
            mDesc = desc;

            mReward  = new RewardData();
            mTrigger = new TypeData();
            mData    = new TypeData();

            mReward.RewardType = reward;
            mTrigger.Type      = trigger;
            mData.Type         = puzzle;

            mIsActive = false;
        }
Esempio n. 3
0
 public Reward(eReward _type, int _amount)
 {
     this.type   = _type;
     this.amount = _amount;
 }