Exemplo n.º 1
0
        public static void Init()
        {
            string         name         = "Chaos Guon Stone";
            string         resourcePath = "BunnyMod/Resources/MagnetGuonStone/magneticguonstone";
            GameObject     gameObject   = new GameObject();
            ChaosGuonStone chaosGuon    = gameObject.AddComponent <ChaosGuonStone>();

            ItemBuilder.AddSpriteToObject(name, resourcePath, gameObject);
            string shortDesc = "Unspecified Orbit";
            string longDesc  = "A guon stone that does not adhere to normal guon stone principles. It decides it's own rotation and orbit every floor, just because it can.";

            chaosGuon.SetupItem(shortDesc, longDesc, "bny");
            chaosGuon.quality = PickupObject.ItemQuality.C;
            ChaosGuonStone.BuildPrefab();
            chaosGuon.OrbitalPrefab = ChaosGuonStone.orbitalPrefab;
            chaosGuon.Identifier    = IounStoneOrbitalItem.IounStoneIdentifier.GENERIC;
        }