root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/network/aion/serverpackets/SM_PRICES.java
| 2283 | 2343 | ||
|---|---|---|---|
18 | 18 | ||
19 | import java.nio.ByteBuffer; | 19 | import java.nio.ByteBuffer; |
20 | 20 | ||
21 | import com.aionemu.gameserver.model.gameobjects.player.Prices; | ||
21 | import com.aionemu.gameserver.network.aion.AionConnection; | 22 | import com.aionemu.gameserver.network.aion.AionConnection; |
22 | import com.aionemu.gameserver.network.aion.AionServerPacket; | 23 | import com.aionemu.gameserver.network.aion.AionServerPacket; |
23 | 24 | ||
24 | /** | 25 | /** |
25 | * @author xavier | 26 | * @author xavier, Sarynth |
26 | * Price/tax in Influence ration dialog | 27 | * Price/tax in Influence ration dialog |
27 | */ | 28 | */ |
28 | public class SM_PRICES extends AionServerPacket | 29 | public class SM_PRICES extends AionServerPacket |
29 | { | 30 | { |
30 | 31 | private Prices prices; | |
32 | | ||
31 | /** | 33 | /** |
34 | * @param prices | ||
35 | */ | ||
36 | public SM_PRICES(Prices prices) | ||
37 | { | ||
38 | this.prices = prices; | ||
39 | } | ||
40 | |||
41 | /** | ||
32 | * {@inheritDoc} | 42 | * {@inheritDoc} |
33 | */ | 43 | */ |
34 | @Override | 44 | @Override |
35 | protected void writeImpl(AionConnection con, ByteBuffer buf) | 45 | protected void writeImpl(AionConnection con, ByteBuffer buf) |
36 | { | 46 | { |
37 | writeC(buf, 100); // Display Buying Price % | 47 | writeC(buf, prices.getGlobalPrices()); // Display Buying Price % |
38 | writeC(buf, 50); // Buying Modified Price % | 48 | writeC(buf, prices.getGlobalPricesModifier()); // Buying Modified Price % |
39 | writeC(buf, 100); // Tax = -100 + C % | 49 | writeC(buf, prices.getTaxes()); // Tax = -100 + C % |
40 | } | 50 | } |
41 | } | 51 | } |
Download diff