Ejemplo n.º 1
0
        public static void Init(AssetBundle expandSharedAssets1)
        {
            CursedBrickObject = expandSharedAssets1.LoadAsset <GameObject>("Cursed Brick");
            SpriteSerializer.AddSpriteToObject(CursedBrickObject, ExpandPrefabs.EXItemCollection, "cursedbrick");

            CursedBrick cursedBrick = CursedBrickObject.AddComponent <CursedBrick>();

            string shortDesc = "Fragment of a living wall...";
            string longDesc  = "There seems to be sounds emanating from the walls around you!\n\nThis item can't be dropped.";

            ItemBuilder.SetupItem(cursedBrick, shortDesc, longDesc, "ex");
            cursedBrick.quality = ItemQuality.D;
            if (!ExpandSettings.EnableEXItems)
            {
                cursedBrick.quality = ItemQuality.EXCLUDED;
            }
            cursedBrick.CanBeDropped         = false;
            cursedBrick.passiveStatModifiers = new StatModifier[] {
                new StatModifier()
                {
                    statToBoost   = PlayerStats.StatType.Curse,
                    amount        = 1,
                    modifyType    = StatModifier.ModifyMethod.ADDITIVE,
                    isMeatBunBuff = false
                }
            };

            CursedBrickID = cursedBrick.PickupObjectId;
        }
Ejemplo n.º 2
0
        public override DebrisObject Drop(PlayerController player)
        {
            DebrisObject debrisObject = base.Drop(player);

            if (debrisObject)
            {
                CursedBrick component = debrisObject.GetComponent <CursedBrick>();
                if (component)
                {
                    component.m_pickedUpThisRun = true;
                }
            }

            if (player)
            {
                m_owner = null;
            }

            ExpandPlaceWallMimic.PlayerHasWallMimicItem = false;

            return(debrisObject);
        }