示例#1
0
    void MAGE_MASK()
    {
        string[] abl_M = { "FireBall", "", "", "", "", "" };
        WEAPONS  staff = new WEAPONS("Wooden Staff", 10, 0, 10, 5, 10, 5, 10, 5, false, true, 2f, 1.5f, WEAPONS.weaponType.Blunt, WEAPONS.weaponClass.Staff, false, 1, 0.5f, 0f);

        cls = new Classes("Mage", "Lower class mages who weild magic.", staff, null, 0, 10, 12, abl_M);
    }
示例#2
0
    void ARCHER_MASK()
    {
        string[] abl_A = { "Focus", "", "", "", "", "" };
        WEAPONS  bow   = new WEAPONS("Wooden Bow", 10, 5, 0, 0, 0, 0, 0, 0, false, true, 3f, 0, WEAPONS.weaponType.Pierce, WEAPONS.weaponClass.Bow, true, 1, 0.6f, 1.2f);

        cls = new Classes("Archer", "Great marksmen found in the highest moutains.", bow, null, 0, 5, 5, abl_A);
    }
示例#3
0
    void NOVICE_MASK()
    {
        WEAPONS fallenSword = new WEAPONS("Fallen Sword", 13, 5, 0, 0, 0, 0, 0, 0, false, false, 0, 1.7f, WEAPONS.weaponType.Edge, WEAPONS.weaponClass.Sword, true, 1, 0.45f, 1.1f);

        string[] ab = { "Elemental Slash", "", "", "", "", "" };
        cls = new Classes("Novice", "The start of everything", fallenSword, null, 0, 1, 3, ab);
    }
示例#4
0
    void BARBARIAN_MASK()
    {
        string[] abl_B = { "Rage", "", "", "", "", "" };
        WEAPONS  Club  = new WEAPONS("Great Club", 20, 7, 0, 0, 0, 0, 0, 0, false, true, 3f, 2f, WEAPONS.weaponType.Blunt, WEAPONS.weaponClass.GreatSword, false, 1, 1f, 1.5f);

        cls = new Classes("Barbarian", "Ruthless warriors born to battle.", Club, null, 0, 6, 10, abl_B);
    }
示例#5
0
    void KNIGHT_MASK()
    {
        string[] abl        = { "Quake", "", "", "", "", "" };
        WEAPONS  GreatSword = new WEAPONS("Great Sword", 25, 10, 0, 0, 0, 0, 0, 0, false, true, 6f, 2f, WEAPONS.weaponType.Edge, WEAPONS.weaponClass.GreatSword, false, 1, 1f, 1.5f);

        cls = new Classes("Knight", "Strong Knights who care the greatest of swords in battles", GreatSword, null, 0, 6, 10, abl);
    }
示例#6
0
    void FENCER_MASK()
    {
        string[] abl_F = { "Pierce", "", "", "", "", "" };
        WEAPONS  poke  = new WEAPONS("Rapier", 5, 5, 0, 0, 0, 0, 0, 0, false, false, 3f, 2f, WEAPONS.weaponType.Pierce, WEAPONS.weaponClass.Rapier, true, 1, .3f, 2.2f);

        cls = new Classes("Fencer", "These skilled warriors use speed and precision to deal critical damage.", poke, null, 0, 4, 7, abl_F);
    }
示例#7
0
    void THEIF_MASK()
    {
        string[] abl_T = { "Poison Blade", "", "", "", "", "" };
        WEAPONS  knife = new WEAPONS("Steel Knife", 5, 3, 0, 0, 0, 0, 0, 0, false, false, 4, 1.2f, WEAPONS.weaponType.Edge, WEAPONS.weaponClass.Sword, true, 1, 0.4f, 2.2f);

        cls = new Classes("Theif", "Close combat fighters using tactical posion and the shadows to fight.", knife, null, 0, 4, 7, abl_T);
    }
示例#8
0
    void PRIEST_MASK()
    {
        string[] abl_P = { "Holy Cross", "", "", "", "", "" };
        WEAPONS  Mace  = new WEAPONS("Mace", 12, 6, 0, 0, 0, 0, 0, 0, false, false, 4, 1.7f, WEAPONS.weaponType.Blunt, WEAPONS.weaponClass.Sword, true, 1, 0.5f, 2.2f);

        cls = new Classes("Priest", "Religious fighters using the ways of the Old God.", Mace, null, 0, 4, 7, abl_P);
    }
示例#9
0
    void SOLDIER_MASK()
    {
        string[] abl       = { "Block", "", "", "", "", "" };
        WEAPONS  longSword = new WEAPONS("Long Sword", 15, 5, 0, 0, 0, 0, 0, 0, false, false, 0, 2f, WEAPONS.weaponType.Edge, WEAPONS.weaponClass.Sword, true, 1, 0.5f, 2.2f);
        WEAPONS  sheild    = new WEAPONS("Broken Sheild", 100, 0, 50, 5, 25, 2, 0, 0, true, false, 0, 0, WEAPONS.weaponType.Blunt, WEAPONS.weaponClass.Sheild, false, 0, 0, 0);

        cls = new Classes("Soldier", "Standard troops in the Sanctus military", longSword, sheild, 0, 3, 5, abl);
    }
示例#10
0
    void HUNTER_MASK()
    {
        string[] abl          = { "Shoot", "", "", "", "", "" };
        WEAPONS  huntersBlade = new WEAPONS("Hunter's Blade", 20, 5, 0, 0, 0, 0, 0, 0, false, false, 1, 1.5f, WEAPONS.weaponType.Edge, WEAPONS.weaponClass.Sword, true, 1, 0.6f, 0f);
        WEAPONS  Gun          = new WEAPONS("Old Pistol", 10, 2, 0, 0, 0, 0, 0, 0, true, false, 0f, 0f, WEAPONS.weaponType.Pierce, WEAPONS.weaponClass.Gun, false, 1, .6f, 0f);

        cls = new Classes("Hunter", "Tactical warriors skilled in the new rifle technology.", huntersBlade, Gun, 0, 4, 7, abl);
    }
示例#11
0
 public Classes(string ClassName, string ClassDesc, WEAPONS main, WEAPONS side, int BuyPrice, int ReqShards, int NextLvShards, string[] Abi)
 {
     className    = ClassName;
     classDesc    = ClassDesc;
     mainHand     = main;
     sideArm      = side;
     buyPrice     = BuyPrice;
     reqShards    = ReqShards;
     nextLvShards = NextLvShards;
     abilities    = Abi;
 }
示例#12
0
    public WeaponAttributes giveWeapon(WEAPONS wep, bool addToArray = true)
    {
        WeaponAttributes obj = WeaponAttributes.create(wep);

        if (!obj || !giveWeapon(obj, addToArray))
        {
            Destroy(obj.gameObject);
            return(null);
        }
        return(obj);
    }
示例#13
0
 public Classes(string ClassName, string ClassDesc,
                string mainName, int mainPhyDam, int mainFireDam, int mainMagDam, int mainArtDam, bool mainOffHand, bool mainTwoHand,
                float mainManaOrStaminaChange, float mainDistance, WEAPONS.weaponType mainWeaponType, WEAPONS.weaponClass mainWpClass,
                bool mainCanBuff, int mainLevel, float mainTime, float mainStrongTime, string sideName, int sidePhyDam,
                int sideFireDam, int sideMagDam, int sideArtDam, bool sideOffHand, bool sideTwoHand, float sideManaOrStaminaChange,
                float sideDistance, WEAPONS.weaponType sideWeaponType, WEAPONS.weaponClass sideWpClass, bool sideCanBuff, int sideLevel, float sideTime, float sideStrongTime, string[] Abi)
 {
     className = ClassName;
     classDesc = ClassDesc;
     mainHand  = new WEAPONS(mainName, mainPhyDam, 0, mainFireDam, 0, mainMagDam, 0, mainArtDam, 0, mainOffHand, mainTwoHand, mainManaOrStaminaChange, mainDistance
                             , mainWeaponType, mainWpClass, mainCanBuff, mainLevel, mainTime, mainStrongTime);
     sideArm = new WEAPONS(sideName, sidePhyDam, 0, sideFireDam, 0, sideMagDam, 0, sideArtDam, 0, sideOffHand, sideTwoHand, sideManaOrStaminaChange, sideDistance
                           , sideWeaponType, sideWpClass, sideCanBuff, sideLevel, sideTime, sideStrongTime);
     abilities = Abi;
 }
示例#14
0
    void Start()
    {
        string[] abl_N       = { "", "", "", "", "", "" };
        WEAPONS  fallenSword = new WEAPONS("Fallen Sword", 10, 5, 0, 0, 0, 0, 0, 0, false, false, 0, 1.7f, WEAPONS.weaponType.Edge, WEAPONS.weaponClass.Sword, true, 0, 0.45f, 2.2f);
        Classes  novice      = new Classes("Novice", "The start of everything", fallenSword, null, 0, 1, 3, abl_N);

        SPELLS fireBall  = new SPELLS(false, false, "Fire Ball", "Cast a huge fire with this spell.", 0, 0, 1, SPELLS.SpellType.Fire, SPELLS.AtkType.Attack, 10, 0, 0);
        SPELLS magicMiss = new SPELLS(false, false, "Magic Missile", "Cast magic missile with this spell.", 0, 0, 1, SPELLS.SpellType.Magic, SPELLS.AtkType.Attack, 0, 10, 0);


        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(novice, false);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().mask = GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().Mask.get(0);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(fireBall, true);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(magicMiss, true);
        //GameObject.FindGameObjectWithTag ("MasterSave").GetComponent<UltraSave> ().SavePlayer ();
    }
示例#15
0
    public static WeaponAttributes create(WEAPONS wep)
    {
        if (wep < 0 || wep >= WEAPONS.MAX_WEAPONS)
        {
            return(null);
        }

        WeaponAttributes prefab = (Instantiate(Resources.Load(WEAPON_PATHS[(int)wep], typeof(GameObject))) as GameObject).GetComponent <WeaponAttributes>();

        if (!prefab)
        {
            return(null);
        }

        prefab.type = wep;
        return(prefab);
    }
示例#16
0
    void Start()
    {
        //Armor
        //bool buyable, bool sellable, string name, string description,EquipRegion slot, int buyPrice, int sellPrice,
        //int meleeDefense, int magicDefense,int fireDefense, int artDefense
//		MASK fallenMask = new MASK(false,false,"Fallen Mask","A mask from a fallen friend",
//		                             10,1,5,0,0,0,0,3,0,0,0,0,0);
//		MASK PerfectMask = new MASK(false,false,"Perfect Mask","The ultimate mask",
//		                           10,1,5,0,0,0,5,5,5,5,5,5,5);
//		ARMOR LeatherShirt = new ARMOR(false,true,"Leather Shirt","A worn down white shirt",ITEMS.EquipRegion.ChestSlot,
//		                           10,1,5,0,0,0,24);
//		ARMOR LeatherPants = new ARMOR(false,true,"Leather Pants","A worn down brown pants",ITEMS.EquipRegion.LegSlot,
//		                               10,1,5,0,0,0,13);
        WEAPONS Axe = new WEAPONS(false, true, "Hatchet", "Worn down hatchet", ITEMS.Type.Weapon
                                  , 100, 20, 12, 0, 0, 0, false, WEAPONS.scaleBonus.Str, true, 20, 2f, WEAPONS.weaponType.Edge
                                  , 4, 1, 0, 0, 'C', WEAPONS.weaponClass.Axe, true, 0, 0.60f, .5f);
        WEAPONS fallenSword = new WEAPONS(false, true, "Fallen Sword", "Broken Sword from a friend", ITEMS.Type.Weapon
                                          , 10, 1, 10, 0, 0, 0, false, WEAPONS.scaleBonus.Str, false, 15, 2f, WEAPONS.weaponType.Edge
                                          , 3, 2, 0, 0, 'C', WEAPONS.weaponClass.Sword, true, 0, 0.60f, 0f);
        WEAPONS sheild = new WEAPONS(false, true, "Broken Sheild", "Worn down sheild", ITEMS.Type.Weapon
                                     , 250, 50, 95, 50, 50, 50, true, WEAPONS.scaleBonus.none, false, 0, 0f, WEAPONS.weaponType.Blunt
                                     , 0, 0, 0, 0, 'C', WEAPONS.weaponClass.Sheild, false, 0, 0f, 0f);
        WEAPONS FireGem = new WEAPONS(false, true, "Fire Gem", "Gem that allows you to control fire.", ITEMS.Type.Weapon
                                      , 250, 50, 0, 20, 0, 0, true, WEAPONS.scaleBonus.Int, false, 5, 0f, WEAPONS.weaponType.Magic
                                      , 0, 0, 0, 4, 'C', WEAPONS.weaponClass.Gem, false, 0, 0.60f, 0f);
        WEAPONS MagicGem = new WEAPONS(false, true, "Magic Gem", "Gem that allows you to control Magic.", ITEMS.Type.Weapon
                                       , 250, 50, 0, 0, 20, 0, true, WEAPONS.scaleBonus.Int, false, 5, 0f, WEAPONS.weaponType.Magic
                                       , 0, 0, 0, 4, 'C', WEAPONS.weaponClass.Gem, false, 0, 0.60f, 0f);
        WEAPONS ArtGem = new WEAPONS(false, true, "Artificial Gem", "Gem that allows you to control lightning.", ITEMS.Type.Weapon
                                     , 250, 50, 0, 0, 0, 20, true, WEAPONS.scaleBonus.Int, false, 5, 0f, WEAPONS.weaponType.Magic
                                     , 0, 0, 0, 4, 'C', WEAPONS.weaponClass.Gem, false, 0, 0.60f, 0f);
        WEAPONS GreatSword = new WEAPONS(true, true, "Great Sword", "Broken Great Sword from a friend", ITEMS.Type.Weapon
                                         , 20, 1, 25, 0, 0, 0, false, WEAPONS.scaleBonus.Str, true, 30, 2f, WEAPONS.weaponType.Edge
                                         , 5, 2, 0, 0, 'C', WEAPONS.weaponClass.GreatSword, true, 0, 1.1f, 1.5f);
        WEAPONS staff = new WEAPONS(true, true, "Wooden Staff", "An Elder Staff forged from the great wood trees.", ITEMS.Type.Weapon
                                    , 2000, 1, 0, 20, 5, 5, false, WEAPONS.scaleBonus.Int, true, 5, 3f, WEAPONS.weaponType.Magic
                                    , 0, 0, 0, 5, 'A', WEAPONS.weaponClass.Staff, false, 0, 0.60f, 0f);
        //		WEAPONS Hammer = new WEAPONS(false,true,"Hammer","Old Hammer",ITEMS.EquipRegion.LeftHandSlot,ITEMS.Type.Weapon
//		                             ,500,100,20,0,0,0,false,WEAPONS.scaleBonus.Str,true,50,2f,WEAPONS.weaponType.Blunt
//		                             ,12,0,0,'A',WEAPONS.weaponClass.Hammer,true,0);
//		GRIMOIRE book = new GRIMOIRE(true,true,"Fire Grimoire","Old dusty book",5,1,0,5,0,0,0,0,5,'C',0,GRIMOIRE.BookType.Fire);
        WEAPONS Gun = new WEAPONS(false, true, "Old Pistol", "A pistol that barely works", ITEMS.Type.Weapon
                                  , 10, 1, 5, 0, 0, 0, true, WEAPONS.scaleBonus.Pre, true, 15, 10f, WEAPONS.weaponType.Pierce
                                  , 0, 0, 2, 0, 'C', WEAPONS.weaponClass.Gun, false, 0, 0.60f, 0f);
//		WEAPONS poke = new WEAPONS(false,true,"Rapier","Worn down rapier",ITEMS.EquipRegion.LeftHandSlot,ITEMS.Type.Weapon
//		                          ,100,20,3,0,0,0,false,WEAPONS.scaleBonus.Dex,false,20,2f,WEAPONS.weaponType.Pierce
//		                          ,1,5,0,'B',WEAPONS.weaponClass.Rapier,true,0);
        WEAPONS poke = new WEAPONS(true, true, "Rapier", "Worn down rapier", ITEMS.Type.Weapon
                                   , 100, 50, 5, 0, 0, 0, false, WEAPONS.scaleBonus.Dex, false, 3, 2f, WEAPONS.weaponType.Pierce
                                   , 1, 5, 0, 0, 'B', WEAPONS.weaponClass.Rapier, true, 0, 0.60f, 0f);
        ITEMS relic = new ITEMS(false, true, true, "Old Relic", "Ancient relic used in rituals. Regains small Hp.", true,
                                ITEMS.Type.Item, 50, 0, true, 10, 10, ITEMS.StatBoost.CurHp, 50, 0f, ITEMS.typeOfItem.Consumable);
        ITEMS paper = new ITEMS(false, true, true, "Fire Paper", "Ignite your main weapon in flames", true,
                                ITEMS.Type.Item, 100, 0, true, 20, 10, ITEMS.StatBoost.Fire, 10, 0f, ITEMS.typeOfItem.Buff);
        ITEMS magicPaper = new ITEMS(false, true, true, "Magic Paper", "Embuted your main weapon in magic", true,
                                     ITEMS.Type.Item, 100, 0, true, 20, 10, ITEMS.StatBoost.Magic, 10, 0f, ITEMS.typeOfItem.Buff);
        ITEMS ArtPaper = new ITEMS(false, true, true, "Mother Board", "Enhance your main weapon in artificial technology", true,
                                   ITEMS.Type.Item, 100, 0, true, 20, 10, ITEMS.StatBoost.Artificial, 10, 0f, ITEMS.typeOfItem.Buff);
        ITEMS grass = new ITEMS(false, true, true, "Grass", "Holy Grass", true,
                                ITEMS.Type.Item, 50, 0, true, 99, 99, ITEMS.StatBoost.CurStam, 0, 0f, ITEMS.typeOfItem.Consumable);
        ITEMS purus = new ITEMS(false, true, true, "Purus", "Regain mana.", true,
                                ITEMS.Type.Item, 50, 0, true, 99, 99, ITEMS.StatBoost.CurMana, 25, 0f, ITEMS.typeOfItem.Consumable);
        ITEMS knives = new ITEMS(false, true, true, "Throwing Knives", "Normal Knives", true,
                                 ITEMS.Type.Item, 150, 0, true, 99, 15, ITEMS.StatBoost.None, 10, 0f, ITEMS.typeOfItem.Throwable);
        ITEMS bullets = new ITEMS(false, true, true, "Bullets", "Used with a Pistol", false,
                                  ITEMS.Type.Item, 30, 0, true, 25, 25, ITEMS.StatBoost.None, 0, 0f, ITEMS.typeOfItem.Bullets);
        ITEMS fireBomb = new ITEMS(false, true, true, "Fire Bomb", "Explodes on contact", true,
                                   ITEMS.Type.Item, 150, 0, true, 10, 10, ITEMS.StatBoost.None, 0, 0f, ITEMS.typeOfItem.Throwable);
        ITEMS antidote = new ITEMS(false, true, true, "Antidote", "Used for curing poison.", true,
                                   ITEMS.Type.Item, 0, 0, true, 20, 10, ITEMS.StatBoost.Poison, 0, 0f, ITEMS.typeOfItem.Consumable);
        ITEMS shard = new ITEMS(false, true, true, "Tablet Shard", "Used for upgrading weapons.", false,
                                ITEMS.Type.Item, 0, 0, true, 99, 1, ITEMS.StatBoost.Shards, 0, 0f, ITEMS.typeOfItem.Consumable);
        SPELLS fireBall  = new SPELLS(false, false, "Fire Ball", "Cast a huge fire with this spell.", 0, 0, 10, SPELLS.SpellType.Fire, SPELLS.AtkType.Attack, 10, 0, 0);
        SPELLS magicMiss = new SPELLS(false, false, "Magic Missile", "Cast magic missile with this spell.", 0, 0, 10, SPELLS.SpellType.Magic, SPELLS.AtkType.Attack, 0, 10, 0);
//		ARMOR Ulta = new ARMOR(false,true,"Ultra Armor","Best in its class",ITEMS.EquipRegion.ChestSlot,
//		                               10000,1,50,50,50,50,124);
//		ARMOR KnightArmor = new ARMOR(false,true,"Knight Armor","2nd best in its class",ITEMS.EquipRegion.ChestSlot,
//		                       10000,1,25,25,25,25,70);
//		//Fire Grimoire



//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(fallenMask);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().EquipArmor(0,0);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(PerfectMask);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(LeatherShirt);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().EquipArmor(0,1);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(Ulta);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(KnightArmor);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(LeatherPants);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().EquipArmor(0,2);
////		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().EquipMainHand(0);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(Gun);
////		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().EquipOffHand(0);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(sheild);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(FireGem);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(MagicGem);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(ArtGem);
////		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(Hammer);
////		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(Gun);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(fallenSword);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(relic);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().EquipItem(0,0);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(paper);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(magicPaper);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(ArtPaper);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(grass);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(poke);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(GreatSword);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(staff);
//	//	GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().EquipMainHand(0);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(bullets);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(knives);
//	//	GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(book);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(fireBomb);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(antidote);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(shard);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(purus);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(Axe);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(fireBall);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty2(magicMiss);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().ChangeClass("Novice");
//		if(this.GetComponent<PlayerSave>().enabled == true)
//			this.GetComponent<PlayerSave>().SaveObject();
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().EquipOffHand(0);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty(Body,false);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty(Leg,false);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty(item,false);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty(perm1,false);
//		GameObject.FindGameObjectWithTag("Player").GetComponent<Equipment>().FindEmpty(perm2,false);
    }
示例#17
0
 void Awake()
 {
     item = new WEAPONS(isBuyable, isSellable, itemName, itemDescription, ITEMS.Type.Weapon, buyPrice
                        , sellPrice, baseDamage, FireDam, MagicDam, ArtDam, isOffHand, status, isTwoHand
                        , decreaseManaOrStamina, Distance, wpType, StrReq, SkiReq, PreReq, IntReq, Scaling, wpClass, canBuff, level, time, strongTime);
 }
示例#18
0
    void Start()
    {
        WEAPONS Axe = new WEAPONS(false, true, "Hatchet", "Worn down hatchet", ITEMS.Type.Weapon
                                  , 100, 20, 12, 0, 0, 0, false, WEAPONS.scaleBonus.Str, true, 20, 2f, WEAPONS.weaponType.Edge
                                  , 4, 1, 0, 0, 'C', WEAPONS.weaponClass.Axe, true, 0, 0.60f, .5f);
        WEAPONS huntersBlade = new WEAPONS("Hunter's Blade", 20, 5, 0, 0, 0, 0, 0, 0, false, false, 1, 1.5f, WEAPONS.weaponType.Edge, WEAPONS.weaponClass.Sword, true, 1, 0.6f, 0f);
        WEAPONS fallenSword  = new WEAPONS("Fallen Sword", 10, 5, 0, 0, 0, 0, 0, 0, false, false, 0, 1.7f, WEAPONS.weaponType.Edge, WEAPONS.weaponClass.Sword, true, 1, 0.5f, 2.2f);
        WEAPONS longSword    = new WEAPONS("Long Sword", 15, 5, 0, 0, 0, 0, 0, 0, false, false, 0, 2f, WEAPONS.weaponType.Edge, WEAPONS.weaponClass.Sword, true, 1, 0.5f, 2.2f);
        WEAPONS GreatSword   = new WEAPONS("Great Sword", 25, 10, 0, 0, 0, 0, 0, 0, false, true, 3f, 2f, WEAPONS.weaponType.Edge, WEAPONS.weaponClass.GreatSword, false, 1, 1f, 1.5f);
        WEAPONS sheild       = new WEAPONS("Broken Sheild", 100, 0, 50, 5, 25, 2, 0, 0, true, false, 0, 0, WEAPONS.weaponType.Blunt, WEAPONS.weaponClass.Sheild, false, 1, 0, 0);
        WEAPONS bow          = new WEAPONS("Wooden Bow", 10, 5, 0, 0, 0, 0, 0, 0, false, true, 3f, 0, WEAPONS.weaponType.Pierce, WEAPONS.weaponClass.Bow, true, 1, 0.6f, 1.2f);
        WEAPONS staff        = new WEAPONS("Wooden Staff", 10, 0, 10, 5, 10, 5, 10, 5, false, true, 5f, 1.5f, WEAPONS.weaponType.Blunt, WEAPONS.weaponClass.Staff, false, 1, 0.5f, 0f);
        WEAPONS Gun          = new WEAPONS("Old Pistol", 10, 2, 0, 0, 0, 0, 0, 0, true, false, 0f, 0f, WEAPONS.weaponType.Pierce, WEAPONS.weaponClass.Gun, false, 1, .6f, 0f);
        WEAPONS poke         = new WEAPONS("Rapier", 5, 5, 0, 0, 0, 0, 0, 0, false, false, 3f, 2f, WEAPONS.weaponType.Pierce, WEAPONS.weaponClass.Rapier, true, 1, .3f, 2.2f);
        WEAPONS Club         = new WEAPONS("Great Club", 20, 7, 0, 0, 0, 0, 0, 0, false, true, 3f, 2f, WEAPONS.weaponType.Blunt, WEAPONS.weaponClass.GreatSword, false, 1, 1f, 1.5f);
        WEAPONS knife        = new WEAPONS("Steel Knife", 5, 3, 0, 0, 0, 0, 0, 0, false, false, 4, 1.2f, WEAPONS.weaponType.Edge, WEAPONS.weaponClass.Sword, true, 1, 0.4f, 2.2f);
        WEAPONS Mace         = new WEAPONS("Mace", 12, 6, 0, 0, 0, 0, 0, 0, false, false, 4, 1.7f, WEAPONS.weaponType.Blunt, WEAPONS.weaponClass.Sword, true, 1, 0.5f, 2.2f);


        ITEMS relic = new ITEMS(false, true, true, "Old Relic", "Ancient relic used in rituals. Regains small Hp.", true,
                                ITEMS.Type.Item, 50, 0, true, 20, 5, ITEMS.StatBoost.CurHp, 6, 0f, ITEMS.typeOfItem.Consumable);
        ITEMS paper = new ITEMS(false, true, true, "Fire Paper", "Ignite your main weapon in flames", true,
                                ITEMS.Type.Item, 100, 0, true, 20, 10, ITEMS.StatBoost.Fire, 10, 0f, ITEMS.typeOfItem.Buff);
        ITEMS magicPaper = new ITEMS(false, true, true, "Magic Paper", "Imbued your main weapon in magic.", true,
                                     ITEMS.Type.Item, 100, 0, true, 20, 10, ITEMS.StatBoost.Magic, 10, 0f, ITEMS.typeOfItem.Buff);
        ITEMS ArtPaper = new ITEMS(false, true, true, "Mother Board", "Enhance your main weapon in artificial technology", true,
                                   ITEMS.Type.Item, 100, 0, true, 20, 10, ITEMS.StatBoost.Artificial, 10, 0f, ITEMS.typeOfItem.Buff);
        ITEMS purus = new ITEMS(false, true, true, "Purus", "Regain mana.", true,
                                ITEMS.Type.Item, 50, 0, true, 20, 4, ITEMS.StatBoost.CurMana, 25, 0f, ITEMS.typeOfItem.Consumable);
        ITEMS knives = new ITEMS(false, true, true, "Throwing Knives", "Small Knives used for range combat. Provides peirce damage.", true,
                                 ITEMS.Type.Item, 150, 0, true, 20, 15, ITEMS.StatBoost.None, 10, 0f, ITEMS.typeOfItem.Throwable);
        ITEMS fireBomb = new ITEMS(false, true, true, "Fire Bomb", "Explodes on contact", true,
                                   ITEMS.Type.Item, 150, 0, true, 10, 10, ITEMS.StatBoost.None, 0, 0f, ITEMS.typeOfItem.Throwable);
        ITEMS antidote = new ITEMS(false, true, true, "Antidote", "Used for curing poison.", true,
                                   ITEMS.Type.Item, 0, 0, true, 20, 10, ITEMS.StatBoost.Poison, 0, 0f, ITEMS.typeOfItem.Consumable);
        ITEMS shard = new ITEMS(false, true, true, "Tablet Shard", "Used for upgrading weapons.", true,
                                ITEMS.Type.Item, 0, 0, true, 99, 20, ITEMS.StatBoost.Shards, 5, 0f, ITEMS.typeOfItem.Consumable);
        ITEMS heartShard = new ITEMS(false, false, true, "Heart Crystal", "A red crystal formed in the shape of a heart. Used in rituals to grant life. Perminatly gain one heart."
                                     , true, ITEMS.Type.Item, 0, 0, false, 1, 1, ITEMS.StatBoost.MaxHp, 4, 0f, ITEMS.typeOfItem.Consumable);
        ITEMS manaShard = new ITEMS(false, false, true, "Mana Crystal", "A blue crystal said to be a catalyst of magic. Perminatly gain extra mana."
                                    , true, ITEMS.Type.Item, 0, 0, false, 1, 1, ITEMS.StatBoost.MaxMana, 4, 0f, ITEMS.typeOfItem.Consumable);
        ITEMS OldOneEssance = new ITEMS(false, false, false, "Old One Essance", "Said to be a part of the Old One. No one knows what it is used for or how to obtain more. A gift from a goddess. Used to upgrade a shrine of your choice."
                                        , false, ITEMS.Type.Item, 0, 0, true, 25, 1, ITEMS.StatBoost.ShrineUpgrade, 0, 0, ITEMS.typeOfItem.Key);

        ITEMS YellowEssance = new ITEMS(false, false, true, "Yellow Essance", "A gift given to each Eternal. The yellow glow that imminates off each Eternal originates from this essance. This allows you to warp back to the last rested shrine with a price of all your essances.",
                                        true, ITEMS.Type.Item, 0, 0, false, 1, 1, ITEMS.StatBoost.EternalEssance, 0, 0, ITEMS.typeOfItem.Consumable);

        ITEMS sharpStone = new ITEMS(false, false, false, "Sharp Stone", "A stone used to infuse to masks", false, ITEMS.Type.Item, 0, 0, true, 20, 1, ITEMS.StatBoost.SharpStone, 0, 0f, ITEMS.typeOfItem.Key);

        //SPELLS fireBall = new SPELLS(false,false,"Fire Ball","Cast a huge fire with this spell.",0,0,1,SPELLS.SpellType.Fire,SPELLS.AtkType.Attack,10,0,0);
        //SPELLS magicMiss = new SPELLS(false,false,"Magic Missile","Cast magic missile with this spell.",0,0,1,SPELLS.SpellType.Magic,SPELLS.AtkType.Attack,0,10,0);

        string[] abl_N = { "", "", "", "", "", "" };
        string[] abl_B = { "Rage", "", "", "", "", "" };
        string[] abl_S = { "Block", "", "", "", "", "" };
        string[] abl_A = { "Focus", "", "", "", "", "" };
        string[] abl_K = { "Quake", "", "", "", "", "" };
        string[] abl_M = { "FireBall", "", "", "", "", "" };
        string[] abl_H = { "Shoot", "", "", "", "", "" };
        string[] abl_F = { "Pierce", "", "", "", "", "" };
        string[] abl_T = { "Poison Blade", "", "", "", "", "" };
        string[] abl_P = { "Holy Cross", "", "", "", "", "" };

        Classes novice  = new Classes("Novice", "The start of everything", fallenSword, null, 0, 1, 3, abl_N);
        Classes soldier = new Classes("Soldier", "Standard troops in the Sanctus military", longSword, sheild, 0, 3, 5, abl_S);
        Classes archer  = new Classes("Archer", "Great marksmen found in the highest moutains.", bow, null, 0, 5, 5, abl_A);
        Classes knight  = new Classes("Knight", "Strong Knights who care the greatest of swords in battles.", GreatSword, null, 0, 6, 10, abl_K);
        Classes mage    = new Classes("Mage", "Lower class mages who weild magic.", staff, null, 0, 10, 12, abl_M);
        Classes hunter  = new Classes("Hunter", "Hunting prey using guns and sword is all these brave men know how to do.", huntersBlade, Gun, 0, 4, 7, abl_H);
        Classes fencer  = new Classes("Fencer", "These skilled warriors use speed and precision to deal critical damage.", poke, null, 0, 4, 7, abl_F);
        Classes barb    = new Classes("Barbarian", "Ruthless warriors born to battle.", Club, null, 0, 6, 10, abl_B);
        Classes theif   = new Classes("Theif", "Close combat fighters using tactical posion and the shadows to fight.", knife, null, 0, 4, 7, abl_T);
        Classes priest  = new Classes("Priest", "Religious fighters using the ways of the Old God.", Mace, null, 0, 4, 7, abl_P);


        PASSIVEITEMS heartRing = new PASSIVEITEMS(true, false, false, false, false, false, false, false, false, false, false, "Heart Ring", "Ring of a fallen soldier. Grants One extra heart.", 0);
        PASSIVEITEMS FireRobe  = new PASSIVEITEMS(false, false, false, true, false, false, false, false, false, false, false, "Fire Robe", "Robe crafted from the rare fire rate. Provides small protection from fire.", 0);


        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(novice, false);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().mask = GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().Mask.get(0);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(soldier, false);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(archer, false);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(mage, false);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(hunter, false);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(knight, false);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(fencer, false);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(barb, false);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(theif, false);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(priest, false);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().FindEmpty(Gun);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().FindEmpty(sheild);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().FindEmpty(FireGem);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().FindEmpty(MagicGem);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().FindEmpty(ArtGem);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().FindEmpty(fallenSword);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(relic, true);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(YellowEssance, false);
        //	GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().EquipItem(0,0);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(paper, true);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(heartRing, true);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(FireRobe, true);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(magicPaper, true);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(ArtPaper, true);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().FindEmpty(poke);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().FindEmpty(GreatSword);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().FindEmpty(staff);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().FindEmpty(bullets);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(knives, true);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(fireBomb, true);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(OldOneEssance, true);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(antidote, true);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(heartShard, true);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().FindEmpty(manaShard,true);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(shard, true);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().FindEmpty(purus,true);
        GameObject.FindGameObjectWithTag("Player").GetComponent <Equip>().FindEmpty(sharpStone, true);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().FindEmpty(Axe);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().FindEmpty(fireBall,true);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().FindEmpty(magicMiss,true);
        //GameObject.FindGameObjectWithTag("Player").GetComponent<Equip>().ChangeClass();
        //if(this.GetComponent<PlayerSave>().enabled == true)
        //	this.GetComponent<PlayerSave>().SaveObject();
    }
示例#19
0
    public bool ChangeClass(string name)     // Add Stuff Here
    {
        GameObject sprite = null;

        mask = curMask;

        //this.curClass = curClass;
        switch (name)
        {
        case "NoMask":
            string[] abl_N       = { "Slash", "", "", "", "", "" };
            WEAPONS  fallenSword = new WEAPONS("Fallen Sword", 10, 5, 0, 0, 0, 0, 0, 0, false, false, 0, 1.7f, WEAPONS.weaponType.Edge, WEAPONS.weaponClass.Sword, true, 0, 0.45f, .5f);
            Classes  noMask      = new Classes("No Mask", "One who is maskless, is like one without a home.", fallenSword, null, 0, 1, 3, abl_N);
            mask = noMask;
            Destroy(this.GetComponent <Platformer2DUserControl> ().curSprite);
            sprite = Resources.Load("NoMask_Eternal") as GameObject;
            this.GetComponent <Platformer2DUserControl> ().curSprite = Instantiate(sprite, sprite.transform.position, sprite.transform.rotation) as GameObject;
            this.GetComponent <Platformer2DUserControl> ().curSprite.transform.parent        = this.transform.FindChild("Sprites");
            this.GetComponent <Platformer2DUserControl> ().curSprite.transform.localPosition = sprite.transform.position;
            abilityNo = 0;
            break;

        case "Novice":
            Destroy(this.GetComponent <Platformer2DUserControl> ().curSprite);
            sprite = Resources.Load("Sword_Eternal") as GameObject;
            this.GetComponent <Platformer2DUserControl> ().curSprite = Instantiate(sprite, sprite.transform.position, sprite.transform.rotation) as GameObject;
            this.GetComponent <Platformer2DUserControl> ().curSprite.transform.parent        = this.transform.FindChild("Sprites");
            this.GetComponent <Platformer2DUserControl> ().curSprite.transform.localPosition = sprite.transform.position;
            abilityNo = 0;
            break;

        case "Soldier":
            Destroy(this.GetComponent <Platformer2DUserControl>().curSprite);
            sprite = Resources.Load("Sword_Sheild_Eternal") as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite = Instantiate(sprite, sprite.transform.position, sprite.transform.rotation) as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.parent        = this.transform.FindChild("Sprites");
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.localPosition = sprite.transform.position;
            abilityNo = 0;
            break;

        case "Knight":
            Destroy(this.GetComponent <Platformer2DUserControl>().curSprite);
            sprite = Resources.Load("GreatSword_Eternal") as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite = Instantiate(sprite, sprite.transform.position, sprite.transform.rotation) as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.parent        = this.transform.FindChild("Sprites");
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.localPosition = sprite.transform.position;
            abilityNo = 0;
            break;

        case "Hunter":
            Destroy(this.GetComponent <Platformer2DUserControl>().curSprite);
            sprite = Resources.Load("Sword_Gun_Eternal") as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite = Instantiate(sprite, sprite.transform.position, sprite.transform.rotation) as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.parent        = this.transform.FindChild("Sprites");
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.localPosition = sprite.transform.position;
            abilityNo = 0;
            break;

        case "Mage":
            Destroy(this.GetComponent <Platformer2DUserControl>().curSprite);
            sprite = Resources.Load("Wooden_Staff_Eternal") as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite = Instantiate(sprite, sprite.transform.position, sprite.transform.rotation) as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.parent        = this.transform.FindChild("Sprites");
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.localPosition = sprite.transform.position;
            abilityNo = 0;
            break;

        case "Fencer":
            Destroy(this.GetComponent <Platformer2DUserControl>().curSprite);
            sprite = Resources.Load("Rapier_Eternal") as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite = Instantiate(sprite, sprite.transform.position, sprite.transform.rotation) as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.parent        = this.transform.FindChild("Sprites");
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.localPosition = sprite.transform.position;
            abilityNo = 0;
            break;

        case "Lumber Jack":
            Destroy(this.GetComponent <Platformer2DUserControl>().curSprite);
            sprite = Resources.Load("Hatchet_Eternal") as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite = Instantiate(sprite, sprite.transform.position, sprite.transform.rotation) as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.parent        = this.transform.FindChild("Sprites");
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.localPosition = sprite.transform.position;
            abilityNo = 0;
            break;

        case "Archer":
            Destroy(this.GetComponent <Platformer2DUserControl>().curSprite);
            sprite = Resources.Load("Bow_Eternal") as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite = Instantiate(sprite, sprite.transform.position, sprite.transform.rotation) as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.parent        = this.transform.FindChild("Sprites");
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.localPosition = sprite.transform.position;
            abilityNo = 0;
            break;

        case "Barbarian":
            Destroy(this.GetComponent <Platformer2DUserControl>().curSprite);
            sprite = Resources.Load("Barbarian_Eternal") as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite = Instantiate(sprite, sprite.transform.position, sprite.transform.rotation) as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.parent        = this.transform.FindChild("Sprites");
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.localPosition = sprite.transform.position;
            abilityNo = 0;
            break;

        case "Theif":
            Destroy(this.GetComponent <Platformer2DUserControl>().curSprite);
            sprite = Resources.Load("Theif_Eternal") as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite = Instantiate(sprite, sprite.transform.position, sprite.transform.rotation) as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.parent        = this.transform.FindChild("Sprites");
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.localPosition = sprite.transform.position;
            abilityNo = 0;
            break;

        case "Priest":
            Destroy(this.GetComponent <Platformer2DUserControl>().curSprite);
            sprite = Resources.Load("Priest_Eternal") as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite = Instantiate(sprite, sprite.transform.position, sprite.transform.rotation) as GameObject;
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.parent        = this.transform.FindChild("Sprites");
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.localPosition = sprite.transform.position;
            abilityNo = 0;
            break;
        }
        if (this.GetComponent <PlatformerCharacter2D>().facingRight == false)
        {
            Vector3 theScale = this.GetComponent <Platformer2DUserControl>().curSprite.transform.localScale;
            theScale.x *= -1;
            this.GetComponent <Platformer2DUserControl>().curSprite.transform.localScale = theScale;
        }
        return(true);
    }
示例#20
0
 public void setMainHand(WEAPONS x)
 {
     mainHand = x;
 }
示例#21
0
 public void setSideHand(WEAPONS x)
 {
     sideArm = x;
 }
示例#22
0
 void Start()
 {
     string[] abl_N       = { "Slash", "", "", "", "", "" };
     WEAPONS  fallenSword = new WEAPONS("Fallen Sword", 10, 5, 0, 0, 0, 0, 0, 0, false, false, 10, 1.7f, WEAPONS.weaponType.Edge, WEAPONS.weaponClass.Sword, true, 0, 0.45f, .5f);
     Classes  noMask      = new Classes("No Mask", "One who is maskless, is like one without a home.", fallenSword, null, 0, 1, 3, abl_N);
 }