コード例 #1
0
        private List <DefaultGameData.Default_MinionSkillData> minionSkillSet()
        {
            List <DefaultGameData.Default_MinionSkillData> list = new List <DefaultGameData.Default_MinionSkillData>();
            BasicStatus bsS   = new BasicStatus(0, 0, 0.5f, 0.2f, 4f, 0, 0, 0, 0, 0);
            BasicStatus bsAS  = bsS * 0.1f;
            BasicStatus bufS  = new BasicStatus();
            BasicStatus bufAS = new BasicStatus();

            DefaultGameData.Default_MinionSkillData newSkill = new DefaultGameData.Default_MinionSkillData(SkillType.Active, "testMinionSkill0", bsS, bsAS, bufS, bufAS, 0, "Images/MinionSkill/" + "testMinionSkill0_0", "Images/MinionSkill/" + "testMinionSkill0_1", "간단한 테스트용 미니언 스킬");
            list.Add(newSkill);

            return(list);
        }
コード例 #2
0
 public void AddStatus(BasicStatus status)
 {
     Hp                  += status.Hp;
     Mp                  += status.Mp;
     AttackSpeed         += status.AttackSpeed;
     AttackRange         += status.AttackRange;
     AttackPower         += status.AttackPower;
     CriticalChance      += status.CriticalChance;
     Deffence            += status.Deffence;
     DeffencePentraction += status.DeffencePentraction;
     Evasive             += status.Evasive;
     MoveSpeed           += status.MoveSpeed;
 }
コード例 #3
0
        private List <DefaultGameData.Default_ItemData> itemSet()
        {
            List <DefaultGameData.Default_ItemData> list = new List <DefaultGameData.Default_ItemData>();

            BasicStatus bs = new BasicStatus(0, 0, 0.5f, 0.2f, 4f, 0, 0, 0, 0, 0);

            DefaultGameData.Default_ItemData newItem = new DefaultGameData.Default_ItemData("weapon1", ItemType.Weapon, bs, bs * 0.1f, "Images/Item/" + "weapon1", "무기 아이템");
            list.Add(newItem);

            bs      = new BasicStatus(10f, 0, 0, 0, 0, 0, 3f, 0, 0.1f, 0);
            newItem = new DefaultGameData.Default_ItemData("armor1", ItemType.Weapon, bs, bs * 0.2f, "Images/Item/" + "armor1", "방어 아이템");
            list.Add(newItem);
            return(list);
        }
コード例 #4
0
        private List <DefaultGameData.Default_SkillData> skillSet()
        {
            List <DefaultGameData.Default_SkillData> list = new List <DefaultGameData.Default_SkillData>();
            BasicStatus bsS   = new BasicStatus(0, 0, 0.5f, 0.2f, 4f, 0, 0, 0, 0, 0);
            BasicStatus bsAS  = bsS * 0.1f;
            BasicStatus bufS  = new BasicStatus();
            BasicStatus bufAS = new BasicStatus();

            DefaultGameData.Default_SkillData newSkill = new DefaultGameData.Default_SkillData("testSkill", bsS, bsAS, SkillType.Active, bufS, bufAS, 0, "Images/Skill/" + "testSkill_0", "Images/Skill/" + "testSkill_1", "간단한 테스트용 스킬");
            list.Add(newSkill);

            bsS      = new BasicStatus(1f, 0.2f, 0, 0, 0, 0, 0.1f, 0, 0, 0);
            bsAS     = bsS * 0.1f;
            bufS     = new BasicStatus();
            bufAS    = new BasicStatus();
            newSkill = new DefaultGameData.Default_SkillData("testSkill1", bsS, bsAS, SkillType.Active, bufS, bufAS, 0, "Images/Skill/" + "testSkill1_0", "Images/Skill/" + "testSkill1_1", "간단한 테스트용 스킬");
            list.Add(newSkill);
            return(list);
        }
コード例 #5
0
ファイル: SettingDataModule.cs プロジェクト: DonutFedy/To-War
        private void SetSettingDataArea(DataArea dataArea)
        {
            // set by setData
            dataArea.LoginData.NeedLvExp          = dataArea.DefaultExpManager.UserExpChart.NeedExp[dataArea.LoginData.Lv - 1];
            dataArea.LoginData.Free_DecSlotCount  = dataArea.DefaultUserData.BasicDecCount + dataArea.LoginData.Lv / dataArea.DefaultUserData.OpenFreeDecLvInterval;
            dataArea.LoginData.PlusGatchaRate     = dataArea.DefaultUserData.AddGatchaRateByLv * dataArea.LoginData.Lv;
            dataArea.LoginData.PlusStrengthenRate = dataArea.DefaultUserData.AddStrengthenRateByLv * dataArea.LoginData.Lv;

            dataArea.OwnedData = new SettingData.OwnedListData();

            dataArea.OwnedData.ItemData   = new List <SettingData.SettingItemData>();
            dataArea.OwnedData.MinionData = new List <SettingData.SettingMinionData>();

            int lv = 1;
            //dataArea.OwnedData.ItemData.Add(new GameDataBase.SettingData.SettingItemData(ItemType.Weapon,0,lv,0,dataArea.DefaultExpManager.ItemExpChart.NeedExp[lv-1]));

            int         rate = 1;
            BasicStatus addS = new BasicStatus();
            //dataArea.OwnedData.MinionData.Add(new GameDataBase.SettingData.SettingMinionData(0, lv, rate, 0, dataArea.DefaultExpManager.UnitExpChart.NeedExp[lv], 3, new int[] { 0 },2, null));
        }