コード例 #1
0
        //Call this method from the Start() method of your ETGModule extension
        public static void Init()
        {
            string itemName     = "Guon Boulder";                                //The name of the item
            string resourceName = "NevernamedsItems/Resources/guonboulder_icon"; //Refers to an embedded png in the project. Make sure to embed your resources!

            GameObject obj = new GameObject();

            var item = obj.AddComponent <GuonBoulder>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "Hefty Chunk";
            string longDesc  = "An experiment to see just how huge a Guon Stone can be." + "\n\nAll the magic in this stone is solely dedicated just to keeping it aloft, and thus no further special effects are able to fit inside.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "nn");
            item.quality = PickupObject.ItemQuality.A;

            BuildPrefab();
            item.OrbitalPrefab = orbitalPrefab;
            item.Identifier    = IounStoneIdentifier.GENERIC;
        }
コード例 #2
0
        public static void Init()
        {
            string itemName = "Bismuth Ammolet";

            string resourceName = "Items/Resources/bismuth_ammolet.png";

            GameObject obj = new GameObject(itemName);

            var item = obj.AddComponent <BismuthAmmolet>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "Silvery Rainbow";
            string longDesc  = "Blanks envenom enemies in the room. Gives one extra blank per floor.\n\nUpon extreme force being applied to the ammolet by a blank, toxic particles are released into the air. Thankfully only gundead are vulnerable to them. The Aztecs believed the pyramid-like crytals contained vast power.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cel");
            ItemBuilder.AddPassiveStatModifier(item, PlayerStats.StatType.AdditionalBlanksPerFloor, 1, StatModifier.ModifyMethod.ADDITIVE);

            item.quality = ItemQuality.B;
            item.sprite.IsPerpendicular = true;
        }
コード例 #3
0
        public static void Init()
        {
            string itemName = "Sympathy Bullets";

            string resourceName = "Items/Resources/sympathy_rounds.png";

            GameObject obj = new GameObject(itemName);

            var item = obj.AddComponent <SympathyBullets>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "The Name Of Gunpowder";
            string longDesc  = "Hitting an enemy deals extra damage equal to half of the original damage, evenly split to all other enemies of the same type in the room. If there is only one other enemy of the same type in the room, the extra damage on them is 25% instead of 50%." +
                               "\n\nEach of these bullets has intricate sygaldry which creates sympathetic links between any targets identical to the original target, causing pain to be shared between them. It is unknown where the energy to cause the extra damage comes from.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cel");

            item.quality = ItemQuality.S;
            item.sprite.IsPerpendicular = true;
        }
コード例 #4
0
ファイル: Randy.cs プロジェクト: blazeykat/prismatism
        public static void Init()
        {
            string     name         = "Randy";
            string     resourcePath = "katmod/Resources/DecaySet/randy.png";
            GameObject gameObject   = new GameObject();
            Randy      item         = gameObject.AddComponent <Randy>();

            ItemBuilder.AddSpriteToObject(name, resourcePath, gameObject);
            string shortDesc = "https://modworkshop.net/mod/27616";
            string longDesc  = "god himself";

            item.SetupItem(shortDesc, longDesc, "psm");
            item.quality = PickupObject.ItemQuality.EXCLUDED;

            Randy.BuildPrefab();
            item.OrbitalPrefab = Randy.orbitalPrefab;
            item.Identifier    = IounStoneIdentifier.GENERIC;

            item.CanBeDropped = true;
            ItemBuilder.AddPassiveStatModifier(item, PlayerStats.StatType.Curse, 3f);
        }
コード例 #5
0
ファイル: Clumsy.cs プロジェクト: Lichton/Fallen-Items
        public static void Init()
        {
            string itemName     = "Clumsy";
            string resourceName = "CakeMod/Resources/Keysing";

            GameObject obj  = new GameObject(itemName);
            var        item = obj.AddComponent <Clumsy>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "Slight Mistep";
            string longDesc  = "The king of roundness blesses you.\n\n" +
                               "As you are absolved of your sins, bullets resist hitting you.\n" +
                               "Some call him Cround.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cak");



            item.quality = PickupObject.ItemQuality.EXCLUDED;
        }
コード例 #6
0
        public static void Init()
        {
            string     itemName     = "Ring of Invisibility";
            string     resourceName = "NevernamedsItems/Resources/ringofinvisibility_icon";
            GameObject obj          = new GameObject(itemName);
            var        item         = obj.AddComponent <RingOfInvisibility>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);
            string shortDesc = "Precious";
            string longDesc  = "Grants invisibility while standing perfectly still." + "\n\nThis ancient ring has been coveted throughout generations of Gungeoneers and Gundead alike. The idea of removing it seems unthinkable.";

            ItemBuilder.AddPassiveStatModifier(item, PlayerStats.StatType.Curse, 1, StatModifier.ModifyMethod.ADDITIVE);

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "nn");
            item.AddToSubShop(ItemBuilder.ShopType.Cursula);
            item.CanBeDropped = false;
            item.quality      = PickupObject.ItemQuality.S;

            RingOfInvisibilityID = item.PickupObjectId;
            item.SetupUnlockOnCustomFlag(CustomDungeonFlags.CHALLENGE_INVISIBLEO_BEATEN, true);
        }
コード例 #7
0
        public static void Init()
        {
            string itemName     = "Yellow Guon Stone";                          //The name of the item
            string resourceName = "NevernamedsItems/Resources/yellowguon_icon"; //Refers to an embedded png in the project. Make sure to embed your resources!

            GameObject obj = new GameObject();

            var item = obj.AddComponent <YellowGuonStone>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "Yellowstone";
            string longDesc  = "Grants brief invulnerability on killing an enemy." + "\n\nThe Yellow Guon handles defense, so that it's bearer may never stop attacking. At least, in theory.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "nn");
            item.quality = PickupObject.ItemQuality.B;

            BuildPrefab();
            item.OrbitalPrefab = orbitalPrefab;
            item.Identifier    = IounStoneIdentifier.GENERIC;
        }
コード例 #8
0
ファイル: CoolHat.cs プロジェクト: UnstableStrafe/CelsItems
        public static void Init()
        {
            string itemName = "Cool Hat";

            string resourceName = "Items/Resources/hat_i_stole.png";

            GameObject obj = new GameObject(itemName);

            var item = obj.AddComponent <CoolHat>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "Lookin' Cool, Joker!";
            string longDesc  = "Increases coolness by 3.\n\nAn extremely cool hat. Any who gaze upon it are jealous of you.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cel");

            item.quality = ItemQuality.EXCLUDED;
            item.sprite.IsPerpendicular = true;
            SetupHatSprite();
        }
コード例 #9
0
ファイル: BloodyDice.cs プロジェクト: blazeykat/prismatism
        public static void Init()
        {
            string     itemName     = "Bloody Dice";
            string     resourceName = "katmod/Resources/Dice/bloodydie";
            GameObject obj          = new GameObject(itemName);
            BloodyDice item         = obj.gameObject.AddComponent <BloodyDice>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);
            string shortDesc = "Blood Gamble";
            string longDesc  = "Gamble your life away.\n\nA red D6. Just one roll couldn't hurt...";

            ItemBuilder.SetupItem(item, shortDesc, longDesc);
            item.quality = ItemQuality.C;
            item.PlaceItemInAmmonomiconAfterItemById(203);
            item.SetCooldownType(ItemBuilder.CooldownType.Timed, 2.5f);
            item.consumable = false;
            GameManager.Instance.RainbowRunForceExcludedIDs.Add(item.PickupObjectId);

            BloodyDiceSpriteID = SpriteBuilder.AddSpriteToCollection("katmod/Resources/Dice/bloodydie", item.sprite.Collection);
            D12SpriteID        = SpriteBuilder.AddSpriteToCollection("katmod/Resources/Dice/bloodyd12butcooler", item.sprite.Collection);
        }
コード例 #10
0
        // Token: 0x060004F1 RID: 1265 RVA: 0x0002A4DC File Offset: 0x000286DC
        public static void Init()
        {
            string     name         = "Star Ninja";
            string     resourcePath = "CakeMod/Resources/StarNinja";
            GameObject gameObject   = new GameObject(name);
            StarNinja  ninjaStuff   = gameObject.AddComponent <StarNinja>();

            ItemBuilder.AddSpriteToObject(name, resourcePath, gameObject);
            string shortDesc = "Stealth 100";
            string longDesc  = "This star aspiried to become a ninja, but was always a joke due to it's ironic nature.";

            ninjaStuff.SetupItem(shortDesc, longDesc, "cak");
            ninjaStuff.SetCooldownType(ItemBuilder.CooldownType.Damage, 250f);
            ninjaStuff.IgnoredByRat                   = true;
            ninjaStuff.consumable                     = false;
            ninjaStuff.canStack                       = true;
            ninjaStuff.numberOfUses                   = 3;
            ninjaStuff.m_cachedNumberOfUses           = 3;
            ninjaStuff.UsesNumberOfUsesBeforeCooldown = true;
            ninjaStuff.quality = PickupObject.ItemQuality.EXCLUDED;
        }
コード例 #11
0
        public static void Register()
        {
            string     name         = "Stopda Rock";
            string     resourcePath = "Knives/Resources/Stopda_Rock";
            GameObject gameObject   = new GameObject();
            Stopda     rock         = gameObject.AddComponent <Stopda>();

            ItemBuilder.AddSpriteToObject(name, resourcePath, gameObject);
            string shortDesc = "Cant Stopda Rock";
            string longDesc  = "Ever since the dawn of the universe this rock has never stopped moving even if it had to bend the laws of physics to get some speed." +
                               " Even when is seems to sit still it vibrates unstoppably. This Stone has the unique ability to store all energy projected into it to use at will." +
                               " The stone will jump with joy upon collecting new energy.";

            rock.SetupItem(shortDesc, longDesc, "ski");
            rock.quality = PickupObject.ItemQuality.B;
            Stopda.BuildPrefab();

            rock.OrbitalPrefab = Stopda.orbitalPrefab;

            rock.Identifier = IounStoneOrbitalItem.IounStoneIdentifier.GENERIC;
        }
コード例 #12
0
        public static void Init()
        {
            string itemName = "Crown Of The Enduring";

            string resourceName = "Items/Resources/test_icon.png";

            GameObject obj = new GameObject(itemName);

            var item = obj.AddComponent <CrownOfTheEnduring>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "A'Tuin's Power";
            string longDesc  = "Gives two max hp. Missing health increases damage.";

            ItemBuilder.AddPassiveStatModifier(item, PlayerStats.StatType.Health, 2, StatModifier.ModifyMethod.ADDITIVE);
            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cel");

            item.quality = ItemQuality.EXCLUDED;
            item.sprite.IsPerpendicular = true;
        }
コード例 #13
0
        public static void Init()
        {
            string itemName = "Test Targetting System";

            string resourceName = "Items/Resources/test_icon.png";

            GameObject obj = new GameObject(itemName);

            var item = obj.AddComponent <TestTargettingSystem>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "Testing";
            string longDesc  = "Targets the enemy in range with the most nearby enemies.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cel");

            item.quality = ItemQuality.EXCLUDED;
            item.sprite.IsPerpendicular = true;
            ItemBuilder.SetCooldownType(item, ItemBuilder.CooldownType.Timed, 3);
        }
コード例 #14
0
        public static void Init()
        {
            string itemName = "Elite Bullets";

            string resourceName = "Items/Resources/elite_bullets.png";

            GameObject obj = new GameObject(itemName);

            var item = obj.AddComponent <EliteBullets>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "Made Of The Finest Lead";
            string longDesc  = "Increases damage. Projectiles are automatically aimed at the nearest enemy.\n\nThe lead for these bullets was mined in the heart of a dying planet, the gunpowder" +
                               "created from the ashes of a Dragun, and forged in the fire of Gunymede's star. No creature has more skill than them.";

            ItemBuilder.AddPassiveStatModifier(item, PlayerStats.StatType.Damage, 1.10f, StatModifier.ModifyMethod.MULTIPLICATIVE);
            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cel");
            item.quality = ItemQuality.S;
            item.sprite.IsPerpendicular = true;
        }
コード例 #15
0
        public static void Init()
        {
            string       itemName     = "Cystful Crown";
            string       resourceName = "BunnyMod/Resources/crownofblood";
            GameObject   obj          = new GameObject(itemName);
            CrownOfBlood crownOfBlood = obj.AddComponent <CrownOfBlood>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);
            string shortDesc = "Its the meta!";
            string longDesc  = "A royal crown that has a large bloody cyst growing in it.\n\n" +
                               "Everyone hates it, and stronger creatures will go out of their way to get rid of it, but it looks kinda cool.";

            crownOfBlood.SetupItem(shortDesc, longDesc, "bny");
            crownOfBlood.AddPassiveStatModifier(PlayerStats.StatType.Coolness, 3f, StatModifier.ModifyMethod.ADDITIVE);
            crownOfBlood.AddPassiveStatModifier(PlayerStats.StatType.Curse, 1f, StatModifier.ModifyMethod.ADDITIVE);
            crownOfBlood.AddPassiveStatModifier(PlayerStats.StatType.MovementSpeed, 1.2f, StatModifier.ModifyMethod.MULTIPLICATIVE);
            crownOfBlood.AddPassiveStatModifier(PlayerStats.StatType.Damage, .25f, StatModifier.ModifyMethod.ADDITIVE);
            crownOfBlood.quality = PickupObject.ItemQuality.A;
            crownOfBlood.AddToSubShop(ItemBuilder.ShopType.Cursula, 1f);
            crownOfBlood.AddToSubShop(ItemBuilder.ShopType.Goopton, 1f);
        }
コード例 #16
0
        public static void Init()
        {
            string itemName     = "Birthday Candle";
            string resourceName = "CakeMod/Resources/BirthdayCandle";

            GameObject obj  = new GameObject(itemName);
            var        item = obj.AddComponent <BirthdayCandle>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "Revelations";
            string longDesc  = "Gives you whatever pickup you don't have currently.\n\n" +
                               "Cannot be dropped.\n" +
                               "This candle marks the birthday of the Keymaster, a lost gungeoneer.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cak");

            item.CanBeDropped = false;

            item.quality = PickupObject.ItemQuality.D;
        }
コード例 #17
0
        public static void Init()
        {
            string itemName = "Ignition Powder";

            string resourceName = "Items/Resources/test_icon.png";

            GameObject obj = new GameObject(itemName);

            var item = obj.AddComponent <IgnitionPowder>();

            obj.AddComponent <RiskParticles>();
            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "Thermite Wake-up Call";
            string longDesc  = "Increases damage while on fire. Reloading an empty clip spawns fire below the player. Increases the time it takes for the fire gauge to fill up. Gives 2 Risk.\nDoes NOT grand fire immunity!\n\nI feel like there's a joke about the Vietnam War I could make here.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cel");
            item.RiskToGive             = 2;
            item.quality                = ItemQuality.C;
            item.sprite.IsPerpendicular = true;
        }
コード例 #18
0
ファイル: Contract.cs プロジェクト: UnstableStrafe/CelsItems
        public static void Init()
        {
            string itemName     = "Contract";
            string resourceName = "Items/Resources/contract.png";

            GameObject obj = new GameObject(itemName);

            var item = obj.AddComponent <Contract>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "With The Devil";
            string longDesc  = "Shop prices are reduced, but buying curses you.\n\nBello takes his shopkeeping very seriously.";

            ItemBuilder.AddPassiveStatModifier(item, PlayerStats.StatType.GlobalPriceMultiplier, .70f, StatModifier.ModifyMethod.MULTIPLICATIVE);

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cel");
            item.quality = PickupObject.ItemQuality.C;
            item.sprite.IsPerpendicular = true;
            item.AddToSubShop(ItemBuilder.ShopType.Cursula);
        }
コード例 #19
0
        public static void Init()
        {
            string     itemName     = "Electrum Rounds";
            string     resourceName = "NevernamedsItems/Resources/NeoItemSprites/electrumrounds_icon";
            GameObject obj          = new GameObject(itemName);
            var        item         = obj.AddComponent <ElectrumRounds>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);
            string shortDesc = "Zip Zop Zap";
            string longDesc  = "Fast, penetrative bullets made of gold and silver alloy. Highly conductive, it maintains a powerful electric bond with it's home holster.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "nn");
            item.quality = PickupObject.ItemQuality.S;
            ItemBuilder.AddPassiveStatModifier(item, PlayerStats.StatType.ProjectileSpeed, 1.7f, StatModifier.ModifyMethod.MULTIPLICATIVE);
            ItemBuilder.AddPassiveStatModifier(item, PlayerStats.StatType.AdditionalShotPiercing, 1, StatModifier.ModifyMethod.ADDITIVE);

            linkVFX = FakePrefab.Clone(PickupObjectDatabase.GetById(298).GetComponent <ComplexProjectileModifier>().ChainLightningVFX);
            FakePrefab.MarkAsFakePrefab(linkVFX);
            UnityEngine.Object.DontDestroyOnLoad(linkVFX);
            item.SetupUnlockOnCustomFlag(CustomDungeonFlags.ADVDRAGUN_KILLED_ROBOT, true);
        }
コード例 #20
0
        public static void Init()
        {
            string itemName     = "Lock Of The Jammed";
            string resourceName = "CakeMod/Resources/LockOfTheJammed";

            GameObject obj  = new GameObject(itemName);
            var        item = obj.AddComponent <LockOfTheJammed>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "Skeyry!";
            string longDesc  = "Grants the owner ability to open locks for free, as well as a free Reaper following the owner.\n\n" +
                               "This mighty lock was once gold, but fell under the posession of the Jammed's Crown.\n" +
                               "Now he's jammed too.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cak");

            item.quality = PickupObject.ItemQuality.EXCLUDED;

            item.AddToSubShop(ItemBuilder.ShopType.Flynt, 1f);
        }
コード例 #21
0
        public static void Init()
        {
            string itemName     = "Terrible Ammo Bag";
            string resourceName = "Items/Resources/terrible_ammo_bag.png";

            GameObject obj = new GameObject(itemName);

            var item = obj.AddComponent <TerribleAmmoBag>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "A Miracle That It Still Works";
            string longDesc  = "Killing an enemy has a chance to reduce the ammo of the currently held gun, but ammo drops are increased.\n\nHeld by the 1st gungeoneer, this ammo bag has seen better days. Full of holes and tears, ammo falls out of it easily, but sometimes ammo will appear inside it.";



            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cel");
            item.quality = PickupObject.ItemQuality.D;
            item.sprite.IsPerpendicular = true;
            item.AddToSubShop(ItemBuilder.ShopType.Trorc);
        }
コード例 #22
0
        public static void Init()
        {
            string itemName     = "Baby Good Blob";
            string resourceName = "CustomItems/Resources/P2/baby_blob";

            GameObject obj  = new GameObject();
            var        item = obj.AddComponent <BabyGoodBlob>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "Scourge of the Empire";
            string longDesc  = "This young blobulin was injected with a serum that gave him ultimate power.\n\n" +
                               "Afraid that he would grow too powerful to control, the chief blobulonians made an attempt on his life.\n\n" +
                               "Wrong move.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "kts");
            item.quality       = PickupObject.ItemQuality.A;
            item.CompanionGuid = guid;
            item.Synergies     = new CompanionTransformSynergy[0];
            BuildPrefab();
        }
コード例 #23
0
        public static void Init()
        {
            string itemName = "Phase Burst";

            string resourceName = "ThePursued/Resources/phase_burst.png";

            GameObject obj = new GameObject(itemName);

            var item = obj.AddComponent <PhaseBurst>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "Cha Cha Real Smooth";
            string longDesc  = "Allows the user to temporarily slip between timelines, but at the cost of being unable to attack.\n\nThe Pursued is known for jumping in and out of timestreams in order to escape the Hegemony Police Force. Doing so is a delicate balance, but the risk is worth being able to evade capture.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "pursued");
            ItemBuilder.SetCooldownType(item, ItemBuilder.CooldownType.Damage, 400);

            item.quality = ItemQuality.C;
            item.sprite.IsPerpendicular = true;
        }
コード例 #24
0
        public static void Init()
        {
            string itemName     = "Bit Bucket";
            string resourceName = "NevernamedsItems/Resources/bitbucket_icon";

            GameObject obj = new GameObject(itemName);

            var item = obj.AddComponent <BitBucket>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "Data Loss";
            string longDesc  = "Consumes lost data, regurgitating it forth when agitated." + "\n\nThe cornerstone of modern computing.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "nn");

            ItemBuilder.SetCooldownType(item, ItemBuilder.CooldownType.Timed, 0.2f);

            item.consumable = false;
            item.quality    = ItemQuality.D;
        }
コード例 #25
0
        public static void Init()
        {
            string itemName     = "Citrine Ammolet";
            string resourceName = "Items/Resources/citrine_ammolet.png";

            GameObject obj = new GameObject(itemName);

            var item = obj.AddComponent <CitrineAmmolet>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "Hot Like Magma";
            string longDesc  = "Creates a pool of fire upon using a blank. Gives fire immunity.\n\nThis ammolet was forged from a citrine found in the lava of a volcano.";

            ItemBuilder.AddPassiveStatModifier(item, PlayerStats.StatType.AdditionalBlanksPerFloor, 1, StatModifier.ModifyMethod.ADDITIVE);


            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cel");
            item.quality = PickupObject.ItemQuality.B;
            item.sprite.IsPerpendicular = true;
        }
コード例 #26
0
        public static void Init()
        {
            string itemName = "Support Contract";

            string resourceName = "Items/Resources/support_contract.png";

            GameObject obj = new GameObject(itemName);

            var item = obj.AddComponent <SupportContract>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "Call In The Big Guns";
            string longDesc  = "Summons a temporary group of Bullet Kin to aid you in battle! \n\nThe Gundead, aside from being irreparably stupid, are extremely loyal. These bullet kin will fight to the death for anyone holding this contract.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cel");
            ItemBuilder.SetCooldownType(item, ItemBuilder.CooldownType.Damage, 650);

            item.quality = ItemQuality.B;
            item.sprite.IsPerpendicular = true;
        }
コード例 #27
0
        public static void Init()
        {
            string     itemName     = "Kalibers Prayer";
            string     resourceName = "NevernamedsItems/Resources/kalibersprayer_icon";
            GameObject obj          = new GameObject(itemName);
            var        item         = obj.AddComponent <KalibersPrayer>();


            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);
            string shortDesc = "Book of Secrets";
            string longDesc  = "Though the most commonly known prayer to Kaliber is the famous Dodge Roll, this tome is filled with lesser rites to briefly grant Kaliber's protection in battle." + "\n\nIt is mandated that every adult Gun Cultist carry a copy of this holy tome, though not all can read it's strange spiralling text.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "nn");

            ItemBuilder.SetCooldownType(item, ItemBuilder.CooldownType.Timed, 8);

            item.consumable = false;
            item.quality    = ItemQuality.D;

            item.SetupUnlockOnCustomFlag(CustomDungeonFlags.GUNCULTIST_QUEST_REWARDED, true);
        }
コード例 #28
0
        public static void Init()
        {
            string     itemName     = "Bloodthirsty Bullets";
            string     resourceName = "NevernamedsItems/Resources/bloodthirstybullets_icon";
            GameObject obj          = new GameObject(itemName);
            var        item         = obj.AddComponent <BloodthirstyBullets>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);
            string shortDesc = "Born in the Fray";
            string longDesc  = "Bullets either deal massive bonus damage to enemies, or enjam them." + "\n\nThese bullets were designed, cast, and shaped in the middle of combat to train them for the battlefield.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "nn");
            ItemBuilder.AddPassiveStatModifier(item, PlayerStats.StatType.Curse, 1f, StatModifier.ModifyMethod.ADDITIVE);



            item.quality = PickupObject.ItemQuality.B;

            item.SetupUnlockOnCustomFlag(CustomDungeonFlags.ALLJAMMED_BEATEN_MINES, true);
            BloodthirstyBulletsID = item.PickupObjectId;
        }
コード例 #29
0
        public static void Init()
        {
            string itemName = "Crown Of The Chosen";

            string resourceName = "Items/Resources/test_icon.png";

            GameObject obj = new GameObject(itemName);

            var item = obj.AddComponent <CrownOfTheChosen>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "For The Worthy";
            string longDesc  = "Gives a powerful blessing to those who wear it.";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cel");
            ItemBuilder.AddPassiveStatModifier(item, PlayerStats.StatType.Damage, 1.4f, StatModifier.ModifyMethod.MULTIPLICATIVE);
            ItemBuilder.AddPassiveStatModifier(item, PlayerStats.StatType.RateOfFire, 1.3f, StatModifier.ModifyMethod.MULTIPLICATIVE);
            item.quality = ItemQuality.S;
            item.sprite.IsPerpendicular = true;
        }
コード例 #30
0
ファイル: ShellBank.cs プロジェクト: UnstableStrafe/CelsItems
        public static void Init()
        {
            string itemName = "Shell Bank";

            string resourceName = "Items/Resources/shell_bank.png";

            GameObject obj = new GameObject(itemName);

            var item = obj.AddComponent <ShellBank>();

            ItemBuilder.AddSpriteToObject(itemName, resourceName, obj);

            string shortDesc = "retoStonks";
            string longDesc  = "While held, all collected casings will be banked. Dropping the item will destroy it and give the player the stored currency, with 2x intrest! Taking damage while the item is held will reduce the stored currency by 15%.\n\n" +
                               "Bullet kin are taught to save their money at a young age for when they want to buy a new gun. While this coin bank has nothing in it right now, it's never too late to start investing!";

            ItemBuilder.SetupItem(item, shortDesc, longDesc, "cel");

            item.quality = ItemQuality.C;
            item.sprite.IsPerpendicular = true;
        }