Research tweaks

This commit is contained in:
Anuken
2020-07-08 12:11:27 -04:00
parent 26e70fa585
commit a9333baa78
13 changed files with 66 additions and 55 deletions

View File

@@ -9,6 +9,7 @@ import mindustry.game.Rules.*;
import mindustry.game.Teams.*;
import mindustry.graphics.*;
import mindustry.world.blocks.storage.CoreBlock.*;
import mindustry.world.modules.*;
import static mindustry.Vars.*;
@@ -71,6 +72,12 @@ public class Team implements Comparable<Team>{
hasPalette = true;
}
/** @return the core items for this team, or an empty item module.
* Never add to the resulting item module, as it is mutable. */
public @NonNull ItemModule items(){
return core() == null ? ItemModule.empty : core().items;
}
/** @return the team-specific rules. */
public TeamRule rules(){
return state.rules.teams.get(this);