Skip to content

Commit

Permalink
Removed "isDominant" trait #3
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoMett committed Mar 19, 2024
1 parent fe420c0 commit 03a6fde
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public FungusDataModel()
{
dominantTraits=new HashMap<>();
dominantTraits.put("species","Boletus salubrium");
//dominantTraits.put("isDominant", true); //maybe useless
dominantTraits.put("spreading", 25);
dominantTraits.put("spreadboost", 1f);
dominantTraits.put("light", 15);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ private void loadFungusSpecies(JsonObject obj)
{
FungusTraits defaultTraits = new FungusTraits();
defaultTraits.species=obj.get("species").getAsString();
defaultTraits.isDominant=obj.get("dominant").getAsBoolean();
defaultTraits.spreading=obj.get("spreading").getAsInt();
defaultTraits.spreadboost=obj.get("spreadboost").getAsFloat();
defaultTraits.light=obj.get("light").getAsInt();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
public class FungusTraits
{
public String species;
public Boolean isDominant;
public Integer spreading;
public Float spreadboost;
public Integer light;
Expand All @@ -17,7 +16,6 @@ public class FungusTraits

public static final String[] traitsDictionary = new String[]{
"species",
"isDominant",
"spreading",
"spreadboost",
"light",
Expand Down

0 comments on commit 03a6fde

Please sign in to comment.