예제 #1
0
    public static BaseTrap GetTrap(int floor)
    {
        BaseTrap trap = new BaseTrap();

        trap.Initialize();
        if (CommonFunction.IsRandom(0.7f) == true)
        {
            trap = TableTrap.GetTrap(30007);
        }
        else
        {
            trap = TableTrap.GetTrap(30006);
        }
        return(trap);
    }
예제 #2
0
    public static BaseTrap GetTrap(long objNo)
    {
        TableTrapData data = Array.Find(Table, i => i.ObjNo == objNo);
        BaseTrap      item = new BaseTrap();

        item.Initialize();
        item.ObjNo = data.ObjNo;
        if (GameStateInformation.IsEnglish == false)
        {
            item.DisplayName = data.DisplayName;
        }
        else
        {
            item.DisplayName = data.DisplayNameEn;
        }
        item.InstanceName    = data.InstanceName;
        item.TType           = data.Ttype;
        item.CountStart      = data.CountStart;
        item.ProbStart       = data.ProbStart;
        item.ProbReduce      = data.ProbReduce;
        item.CommonNumber    = data.CommonNumber;
        item.PerPlayerDamage = data.PerPlayerDamage;
        return(item);
    }