Example #1
0
 void GetSetItem()
 {
     if (PlayerPrefs.GetString("SetItem_Armor_Name_0") != "")
     {
         Item_Armor item = new Item_Armor();
         item.ItemSaveGet(PlayerPrefs.GetString("SetItem_Armor_Name_0"), PlayerPrefs.GetString("SetItem_Armor_KoreamName_0"),
                          PlayerPrefs.GetString("SetItem_Armor_Type_0"), PlayerPrefs.GetInt("SetItem_Armor_Rating_0"),
                          PlayerPrefs.GetInt("SetItem_Armor_Price_0"), PlayerPrefs.GetInt("SetItem_Armor_AttackPoint_0"),
                          PlayerPrefs.GetInt("SetItem_Armor_PowerPoint_0"), PlayerPrefs.GetInt("SetItem_Armor_Intellect_0"),
                          PlayerPrefs.GetInt("SetItem_Armor_ArmorPoint_0"), PlayerPrefs.GetInt("SetItem_Armor_HealthPoint_0"),
                          PlayerPrefs.GetInt("HaveItem_Armor_OriginAttackPoint_0"),
                          PlayerPrefs.GetInt("HaveItem_Armor_OriginPowerPoint_0"), PlayerPrefs.GetInt("HaveItem_Armor_OriginIntellect_0"),
                          PlayerPrefs.GetInt("HaveItem_Armor_OriginArmorPoint_0"), PlayerPrefs.GetInt("HaveItem_Armor_OriginHealthPoint_0"),
                          PlayerPrefs.GetInt("SetItem_Armor_ItemLevel_0"), PlayerPrefs.GetInt("HaveItem_Armor_StatRating_0"));
         item._ItemInfo       = PlayerPrefs.GetString("SetItem_Armor_ItemInfo_0");
         item._ItemKoreanName = PlayerPrefs.GetString("SetItem_Armor_KoreamName_0");
         StaticDataMng._HeroSetItem_Armor.Add(item);
     }
     if (PlayerPrefs.GetString("SetItem_WarriorWeapon_Name_0") != "")
     {
         Item_WarriorWeapon item = new Item_WarriorWeapon();
         item.ItemSaveGet(PlayerPrefs.GetString("SetItem_WarriorWeapon_Name_0"), PlayerPrefs.GetString("SetItem_WarriorWeapon_KoreamName_0"),
                          PlayerPrefs.GetString("SetItem_WarriorWeapon_Type_0"), PlayerPrefs.GetInt("SetItem_WarriorWeapon_Rating_0"),
                          PlayerPrefs.GetInt("SetItem_WarriorWeapon_Price_0"), PlayerPrefs.GetInt("SetItem_WarriorWeapon_AttackPoint_0"),
                          PlayerPrefs.GetInt("SetItem_WarriorWeapon_PowerPoint_0"), PlayerPrefs.GetInt("SetItem_WarriorWeapon_Intellect_0"),
                          PlayerPrefs.GetInt("SetItem_WarriorWeapon_ArmorPoint_0"), PlayerPrefs.GetInt("SetItem_WarriorWeapon_HealthPoint_0"),
                          PlayerPrefs.GetInt("HaveItem_WarriorWeapon_OriginAttackPoint_0"),
                          PlayerPrefs.GetInt("HaveItem_WarriorWeapon_OriginPowerPoint_0"), PlayerPrefs.GetInt("HaveItem_WarriorWeapon_OriginIntellect_0"),
                          PlayerPrefs.GetInt("HaveItem_WarriorWeapon_OriginArmorPoint_0"), PlayerPrefs.GetInt("HaveItem_WarriorWeapon_OriginHealthPoint_0"),
                          PlayerPrefs.GetInt("SetItem_WarriorWeapon_ItemLevel_0"), PlayerPrefs.GetInt("HaveItem_WarriorWeapon_StatRating_0"));
         item._ItemInfo       = PlayerPrefs.GetString("SetItem_WarriorWeapon_ItemInfo_0");
         item._ItemKoreanName = PlayerPrefs.GetString("SetItem_WarriorWeapon_KoreamName_0");
         StaticDataMng._HeroSetItem_Weapon.Add(item);
     }
 }
Example #2
0
 void ArmorList()
 {
     {
         Item_Armor item = new Item_Armor();
         item.ItemInit("armor_lv1_common_1", "구식 강철 갑옷", "armor", 1, 17, 0, 10, 10, 500, 20, 1);
         item._ItemInfo = "-미첼- 아저씨 이런 건 얼마나 있어요?\r\n-라기드- 응? 한 100세트 있나?";
         StaticDataMng._AllHeroItemList_Common.Add(item);
     }
     {
         Item_Armor item = new Item_Armor();
         item.ItemInit("armor_lv5_common_1", "쓸만한 미늘 갑옷", "armor", 1, 36, 0, 40, 20, 600, 60, 5);
         item._ItemInfo = "";
         StaticDataMng._AllHeroItemList_Common.Add(item);
     }
     {
         Item_Armor item = new Item_Armor();
         item.ItemInit("armor_lv5_rare_1", "디가르의 갑주", "armor", 2, 72, 0, 60, 20, 650, 80, 5);
         item._ItemInfo = "-미첼- 이건.. 어떻게 벗겨왔어요?\r\n-라기드- 안 벗겨지길래 그냥 조각냈지";
         StaticDataMng._AllHeroItemList_Rare.Add(item);
     }
     {
         Item_Armor item = new Item_Armor();
         item.ItemInit("armor_lv10_common_1", "흠집난 티타늄 갑옷", "armor", 1, 78, 0, 50, 30, 700, 80, 10);
         item._ItemInfo = "-라기드- 내가 옛날에 이걸 입고 얼마나 대단했는지 알아?";
         StaticDataMng._AllHeroItemList_Common.Add(item);
     }
     {
         Item_Armor item = new Item_Armor();
         item.ItemInit("armor_lv10_rare_1", "로리카", "armor", 2, 106, 0, 70, 40, 800, 100, 10);
         item._ItemInfo = "-미첼- 이거.. 치마아니야?";
         StaticDataMng._AllHeroItemList_Rare.Add(item);
     }
     {
         Item_Armor item = new Item_Armor();
         item.ItemInit("armor_lv10_rare_2", "쿠야크", "armor", 2, 106, 0, 100, 40, 750, 90, 10);
         item._ItemInfo = "-미스틱- 너 거북이 같아";
         StaticDataMng._AllHeroItemList_Rare.Add(item);
     }
 }
        private void CreateNew_Pickables()
        {
            WorldObjectScript worldObjectScript = target as WorldObjectScript;
            PickableScript    pickableScript    = target as PickableScript;
            ActorScript       actorScript       = target as ActorScript;

            var dir  = NewFolder(target.gameObject.name);
            var path = $"{dir}/{target.gameObject.name}.prefab";

            var prefab1 = PrefabUtility.SaveAsPrefabAssetAndConnect(target.gameObject, path, InteractionMode.UserAction);

            ItemData_Type itemType = MainUtility.Convert_ObjectToItemType(pickableScript.Get_Pickable_Data().formID.ObjectType);

            if (itemType == ItemData_Type.Ammo)
            {
                Item_Ammo item = new Item_Ammo();
                item.ID        = pickableScript.Get_ObjectRefData().formID.BaseID;
                item.gameModel = prefab1;

                objectDatabase.Data.allItemAmmo.Add(item);
            }
            else if (itemType == ItemData_Type.Armor)
            {
                Item_Armor item = new Item_Armor();
                item.ID        = pickableScript.Get_ObjectRefData().formID.BaseID;
                item.gameModel = prefab1;

                objectDatabase.Data.allItemArmors.Add(item);
            }
            else if (itemType == ItemData_Type.Consume)
            {
                Item_Consumables item = new Item_Consumables();
                item.ID        = pickableScript.Get_ObjectRefData().formID.BaseID;
                item.gameModel = prefab1;

                objectDatabase.Data.allItemConsumables.Add(item);
            }
            else if (itemType == ItemData_Type.Junk)
            {
                Item_Junk item = new Item_Junk();
                item.ID        = pickableScript.Get_ObjectRefData().formID.BaseID;
                item.gameModel = prefab1;

                objectDatabase.Data.allItemJunk.Add(item);
            }
            else if (itemType == ItemData_Type.Key)
            {
                Item_Key item = new Item_Key();
                item.ID        = pickableScript.Get_ObjectRefData().formID.BaseID;
                item.gameModel = prefab1;

                objectDatabase.Data.allItemKey.Add(item);
            }
            else if (itemType == ItemData_Type.Misc)
            {
                Item_Misc item = new Item_Misc();
                item.ID        = pickableScript.Get_ObjectRefData().formID.BaseID;
                item.gameModel = prefab1;

                objectDatabase.Data.allItemMiscs.Add(item);
            }
            else if (itemType == ItemData_Type.Weapon)
            {
                Item_Weapon item = new Item_Weapon();
                item.ID        = pickableScript.Get_ObjectRefData().formID.BaseID;
                item.gameModel = prefab1;

                objectDatabase.Data.allItemWeapon.Add(item);
            }
        }