Skip to content

Commit

Permalink
upload v15 webGL
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashet committed Oct 25, 2017
1 parent e57da69 commit 07c0e02
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Assets/code/Logic/FactoryType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static FactoryType()
{
new FactoryType("Forestry", new Storage(Product.Wood, 2f), false);
new FactoryType("Gold pit", new Storage(Product.Gold, 2f), true);
new FactoryType("Metal pit", new Storage(Product.MetallOre, 2f), true);
new FactoryType("Metal pit", new Storage(Product.MetalOre, 2f), true);
new FactoryType("Coal pit", new Storage(Product.Coal, 3f), true);
new FactoryType("Cotton farm", new Storage(Product.Cotton, 2f), false);
new FactoryType("Quarry", new Storage(Product.Stone, 2f), true);
Expand All @@ -55,7 +55,7 @@ static FactoryType()

resourceInput = new StorageSet();
resourceInput.set(new Storage(Product.Fuel, 0.5f));
resourceInput.set(new Storage(Product.MetallOre, 2f));
resourceInput.set(new Storage(Product.MetalOre, 2f));
new FactoryType("Metal smelter", new Storage(Product.Metal, 4f), resourceInput);

resourceInput = new StorageSet();
Expand Down
2 changes: 1 addition & 1 deletion Assets/code/Logic/Game.cs
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static private void setStartResources()
Country.allCountries[3].getCapital().setResource(Product.Gold);
Country.allCountries[4].getCapital().setResource(Product.Cotton);
Country.allCountries[5].getCapital().setResource(Product.Stone);
Country.allCountries[6].getCapital().setResource(Product.MetallOre);
Country.allCountries[6].getCapital().setResource(Product.MetalOre);
Country.allCountries[7].getCapital().setResource(Product.Wood);
}

Expand Down
6 changes: 3 additions & 3 deletions Assets/code/Logic/Product.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Product : Name
private readonly List<Product> substitutes;
private readonly Color color;

internal static readonly Product Fish, Grain, Cattle, Wood, Lumber, Furniture, Gold, Metal, MetallOre,
internal static readonly Product Fish, Grain, Cattle, Wood, Lumber, Furniture, Gold, Metal, MetalOre,
Cotton, Clothes, Stone, Cement, Fruit, Liquor, ColdArms, Ammunition, Firearms, Artillery,
Oil, MotorFuel, Cars, Tanks, Airplanes, Rubber, Machinery,
Coal = new Product("Coal", 1f, Color.black),
Expand Down Expand Up @@ -45,7 +45,7 @@ static Product()
Stone = new Product("Stone", 1f, new Color(0.82f, 0.62f, 0.82f));//light grey
Cement = new Product("Cement", 2f);

MetallOre = new Product("Metal ore", 3f, Color.blue);
MetalOre = new Product("Metal ore", 3f, Color.blue);
Metal = new Product("Metal", 6f);

ColdArms = new Product("Cold arms", 13f);
Expand Down Expand Up @@ -215,7 +215,7 @@ public bool isInvented(Country country)
{
if (
(
(this == Metal || this == MetallOre || this == ColdArms) && !country.isInvented(Invention.Metal))
(this == Metal || this == MetalOre || this == ColdArms) && !country.isInvented(Invention.Metal))
|| (!country.isInvented(Invention.SteamPower) && (this == Machinery || this == Cement))
|| ((this == Artillery || this == Ammunition) && !country.isInvented(Invention.Gunpowder))
|| (this == Firearms && !country.isInvented(Invention.Firearms))
Expand Down
2 changes: 1 addition & 1 deletion Assets/code/Logic/Province.cs
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ public void BalanceEmployableWorkForce()
internal void setResource(Product inres)
{
resource = inres;
if (resource == Product.Stone || resource == Product.Gold || resource == Product.MetallOre || resource == Product.Coal)
if (resource == Product.Stone || resource == Product.Gold || resource == Product.MetalOre || resource == Product.Coal)
terrain = TerrainTypes.Mountains;
else
terrain = TerrainTypes.Plains;
Expand Down
Binary file modified WEBGL/Build/WEBGL.asm.code.unityweb
Binary file not shown.
Binary file modified WEBGL/Build/WEBGL.asm.framework.unityweb
Binary file not shown.
Binary file modified WEBGL/Build/WEBGL.asm.memory.unityweb
Binary file not shown.
Binary file modified WEBGL/Build/WEBGL.data.unityweb
Binary file not shown.

0 comments on commit 07c0e02

Please sign in to comment.