private Item LootHammer(int currentItemLevel) { Item testItem = new Weapon_Melee(); int rarity = Rarity(); int nIL = NewItemLevel(rarity, currentItemLevel); int degreesSecun = Degrees(); int degreesPri = Degrees(); int amountSecun = 1; int amountPrim = 1; if (degreesSecun != 0) { amountSecun = AmountSecun(); } if (degreesPri != 0) { amountPrim = AmountPrimary(); } bool rOL = false; if (rarity >= 2) { rOL = true; } string secun = Database.hostInstance.GetMeleeSecundary(rOL); //Item Creation XD testItem.StartUp(Database.hostInstance.GetHammerName(), rarity, Database.hostInstance.GetHammerSprite(), NewStats(nIL), Database.hostInstance.GetHammerObject(), nIL); testItem.StartWeapon(BaseDamage(nIL), FireRate(), secun, SecundaryFR(), ChargeTime(), Force(), 1, 0, Buff(secun), Single(secun)); testItem.StartMelee(Range(), Knockback()); //end item creation return(testItem); }
private Item LootOtherWeapon(int currentItemLevel) { Item otherWeapon = new Weapon_Melee(); int rarity = Rarity(); int nIL = NewItemLevel(rarity, currentItemLevel); int myItem = Database.hostInstance.OW(); bool rOL = false; if (rarity >= 2) { rOL = true; } string secun = Database.hostInstance.GetMeleeSecundary(rOL); otherWeapon.StartUp(Database.hostInstance.GetOWName(myItem), rarity, Database.hostInstance.GetOWSprite(myItem), NewStats(nIL), Database.hostInstance.GetOWObject(myItem), nIL); otherWeapon.StartWeapon(BaseDamage(nIL), FireRate(), secun, SecundaryFR(), ChargeTime(), Force(), 1, 0, Buff(secun), Single(secun)); otherWeapon.StartMelee(Range(), 0); return(otherWeapon); }
private Item LootAxe(int currentItemLevel) { Item testItem = new Weapon_Melee(); int rarity = Rarity(); int nIL = NewItemLevel(rarity, currentItemLevel); bool rOL = false; if (rarity >= 2) { rOL = true; } string secun = Database.hostInstance.GetMeleeSecundary(rOL); //Item Creation XD testItem.StartUp(Database.hostInstance.GetAxeName(), rarity, Database.hostInstance.GetAxeSprite(), NewStats(nIL), Database.hostInstance.GetAxeObject(), nIL); testItem.StartWeapon(BaseDamage(nIL), FireRate(), secun, SecundaryFR(), ChargeTime(), Force(), 1, 0, Buff(secun), Single(secun)); testItem.StartMelee(Range(), 0); //end item creation return(testItem); }