content: /**
   * This file is part of Aion-Lightning <aion-lightning.org>.
   *
   *  Aion-Lightning is free software: you can redistribute it and/or modify
   *  it under the terms of the GNU General Public License as published by
   *  the Free Software Foundation, either version 3 of the License, or
   *  (at your option) any later version.
   *
   *  Aion-Lightning is distributed in the hope that it will be useful,
   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   *  GNU General Public License for more details. *
   *  You should have received a copy of the GNU General Public License
   *  along with Aion-Lightning.
   *  If not, see <http://www.gnu.org/licenses/>.
   */
  package com.aionemu.gameserver.network.aion.serverpackets;
  
  import com.aionemu.gameserver.model.siege.Influence;
  import com.aionemu.gameserver.network.aion.AionConnection;
  import com.aionemu.gameserver.network.aion.AionServerPacket;
  import com.aionemu.gameserver.services.SiegeService;
  
  /**
   * @author Nemiroff
   */
  public class SM_INFLUENCE_RATIO extends AionServerPacket {
  
  	/**
  	 * {@inheritDoc}
  	 */
  	@Override
  	protected void writeImpl(AionConnection con) {
  		Influence inf = Influence.getInstance();
  
  		writeD(SiegeService.getInstance().getSecondsBeforeHourEnd());
  		writeF(inf.getGlobalElyosInfluence());
  		writeF(inf.getGlobalAsmodiansInfluence());
  		writeF(inf.getGlobalBalaursInfluence());
  		writeH(4); // maps count
  		writeD(210050000);
  		writeF(0); //inf.getInggisonElyosInfluence());
  		writeF(0); //inf.getInggisonAsmodiansInfluence());
  		writeF(0); //inf.getInggisonBalaursInfluence());
  		writeD(220070000);
  		writeF(0); //inf.getGelkmarosElyosInfluence());
  		writeF(0); //inf.getGelkmarosAsmodiansInfluence());
  		writeF(0); //inf.getGelkmarosBalaursInfluence());
  		writeD(400010000);
  		writeF(inf.getAbyssElyosInfluence());
  		writeF(inf.getAbyssAsmodiansInfluence());
  		writeF(inf.getAbyssBalaursInfluence());
  		writeD(800050000);
  		writeF(0); //inf.getKaldorElyosInfluence());
  		writeF(1); //inf.getKaldorAsmodiansInfluence());
  		writeF(0); //inf.getKaldorBalaursInfluence());
  	}
  }
  