예제 #1
0
        public override void PostLoad()
        {
            PlaceItems[0]           = SimplePrototypeItem.MakePlaceable(mod, "SmallButtonItem", Type, 20, 20, 0, Item.sellPrice(0, 0, 4, 0));
            PlaceItems[0].item.rare = ItemRarityID.White;

            NetRouter.AddHandler(this);
        }
예제 #2
0
        public override void PostLoad()
        {
            PlaceItems[0]           = SimplePrototypeItem.MakePlaceable(mod, "BigButtonItem", Type, 24, 20);
            PlaceItems[0].item.rare = ItemRarityID.White;

            NetRouter.AddHandler(this);
        }
예제 #3
0
        public override void PostLoad()
        {
            SimplePlaceableItem i = new SimplePlaceableItem();

            i.placeType = Type;
            i.value     = Item.sellPrice(0, 0, 4, 0);
            mod.AddItem("SmallButtonItem", i);
            i.DisplayName.AddTranslation(LangID.English, "Small button");
            placeItems[0] = i;

            NetRouter.AddHandler(this);
        }
예제 #4
0
        public override void PostLoad()
        {
            PlaceItems = new ModItem[3];

            int sell = Item.sellPrice(0, 1, 0, 0);

            //Omni turret
            PlaceItems[0]           = SimplePrototypeItem.MakePlaceable(mod, "OmniTurretItem", Type, 32, 32, 0, sell);
            PlaceItems[0].item.rare = ItemRarityID.Green;

            //Super omni turret
            PlaceItems[1]           = SimplePrototypeItem.MakePlaceable(mod, "SuperOmniTurretItem", Type, 32, 32, 1, sell);
            PlaceItems[1].item.rare = ItemRarityID.LightRed;

            //Matter projector
            PlaceItems[2]           = SimplePrototypeItem.MakePlaceable(mod, "MatterProjectorItem", Type, 32, 32, 2, sell);
            PlaceItems[2].item.rare = ItemRarityID.Cyan;

            NetRouter.AddHandler(this);
        }
예제 #5
0
        public override void PostLoad()
        {
            placeItems = new ModItem[3];

            //Omni turret
            SimplePlaceableItem i = new SimplePlaceableItem();

            i.placeType = Type;
            i.value     = Item.sellPrice(0, 1, 0, 0);
            mod.AddItem("OmniTurretItem", i);
            i.DisplayName.AddTranslation(LangID.English, "Omni turret");
            i.Tooltip.AddTranslation(LangID.English, "Shoots any standard ammo");
            placeItems[0] = i;

            //Super omni turret
            i           = new SimplePlaceableItem();
            i.placeType = Type;
            i.value     = Item.sellPrice(0, 1, 0, 0);
            i.style     = 1;
            mod.AddItem("SuperOmniTurretItem", i);
            i.DisplayName.AddTranslation(LangID.English, "Super omni turret");
            i.Tooltip.AddTranslation(LangID.English, "Shoots any standard ammo");
            placeItems[1] = i;

            //Matter projector
            i           = new SimplePlaceableItem();
            i.placeType = Type;
            i.value     = Item.sellPrice(0, 1, 0, 0);
            i.style     = 2;
            mod.AddItem("MatterProjectorItem", i);
            i.DisplayName.AddTranslation(LangID.English, "Matter projector");
            i.Tooltip.AddTranslation(LangID.English, "Shoots any standard ammo really, really fast");
            placeItems[2] = i;

            NetRouter.AddHandler(this);
        }
예제 #6
0
 public PlayerInterfaceAdapter(Mod mod)
 {
     this.mod = mod;
     NetRouter.AddHandler(this);
 }
예제 #7
0
 public ChestAdapter(Mod mod)
 {
     this.mod = mod;
     NetRouter.AddHandler(this);
 }
 public override void PostLoadPrototype()
 {
     NetRouter.AddHandler(this);
 }
예제 #9
0
 public OmniTurretAdapter(Mod mod)
 {
     this.mod = mod;
     NetRouter.AddHandler(this);
 }