From 98fe77b148899b18ea398dc8bd4e587a2db3385b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 29 Feb 2024 20:57:14 -0600 Subject: [PATCH] hard set mine windows --- src/engine/objects/Mine.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/Mine.java b/src/engine/objects/Mine.java index 795655d0..1e93bc57 100644 --- a/src/engine/objects/Mine.java +++ b/src/engine/objects/Mine.java @@ -254,7 +254,15 @@ public class Mine extends AbstractGameObject { writer.putInt(mine.getObjectUUID()); writer.putInt(mine.getObjectUUID()); //actually a hash of mine writer.putString(mine.mineType.name); - writer.putString(mine.zoneName + " {" + mine.capSize + " Man}"); + if(ChinaMines.contains((mine))) { + writer.putString("Chinese" + " {" + mine.capSize + " Man}"); + } else if(AmericaMines.contains(mine)){ + writer.putString("American" + " {" + mine.capSize + " Man}"); + } else if(EuroMines.contains(mine)){ + writer.putString("Euro" + " {" + mine.capSize + " Man}"); + }else{ + writer.putString("Unknown" + " {" + mine.capSize + " Man}"); + } writer.putInt(mine.production.hash); writer.putInt(mine.getModifiedProductionAmount()); writer.putInt(mine.getModifiedProductionAmount()); //TODO calculate range penalty here