Maps updated / 100 starting copper in custom maps

This commit is contained in:
Anuken
2019-06-06 22:45:25 -04:00
parent aee800ab7a
commit 1b4b1d5c9f
8 changed files with 32 additions and 6 deletions
@@ -2,7 +2,9 @@ package io.anuke.mindustry.game;
import io.anuke.annotations.Annotations.Serialize;
import io.anuke.arc.collection.Array;
import io.anuke.mindustry.content.Items;
import io.anuke.mindustry.io.JsonIO;
import io.anuke.mindustry.type.ItemStack;
import io.anuke.mindustry.type.Zone;
/**
@@ -63,6 +65,8 @@ public class Rules{
public boolean attackMode = false;
/** Whether this is the editor gamemode. */
public boolean editor = false;
/** Items that the player starts with here. Not applicable to zones.*/
public Array<ItemStack> startingItems = Array.with(new ItemStack(Items.copper, 100));
/** Copies this ruleset exactly. Not very efficient at all, do not use often. */
public Rules copy(){