示例#1
0
 @Override
 public double getFlavorMatch(Faction faction) {
   return (((Globals.MAX_REPUTATION - faction.getReputationNumber(world.getControllingFaction()))
           / Globals.MAX_REPUTATION)
       * (faction.getDiplomacy() + faction.getAggression())
       / 2.0);
 }
 @Override
 public double getFlavorMatch(Faction faction) {
   return ((target.getTechLevel().getTotalTechLevel() / Globals.MAX_TECH_LEVEL)
       * (faction.getDiplomacy() + faction.getAggression())
       / 2.0);
 }