Location: PHPKode > projects > Alliances Manager > libs/CostoEdificios.php
<?php 
/*
 *  Alliances Manager (Gestionador de Alianzas) - Travian
 *  Copyright (C) 2008-12  Viva Mayer, Francisco Mesías <hide@address.com>
 *
 *  This program 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.
 *
 *  This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
*/

// Costos de los Edificios
	// Lenyador - Wood
 	$lenyadorCost = array (
		array (0, 0, 0, 0),
		array (40, 100, 50, 60),
		array (65, 165, 85, 100),
		array (110, 280, 140, 165),
		array (185, 465, 235, 280),
		array (310, 780, 390, 465),
		array (520, 1300, 650, 780),
		array (870, 2170, 1085, 1300),
		array (1450, 3625, 1810, 2175),
		array (2420, 6050, 3025, 3630),
		array (4040, 10105, 5050, 6060),
		array (6750, 16870, 8435, 10125),
		array (11270, 28175, 14090, 16905),
		array (18820, 47055, 23525, 28230),
		array (31430, 78580, 39290, 47150),
		array (52490, 131230, 65615, 78740),
		array (87660, 219155, 109575, 131490),
		array (146395, 365985, 182995, 219590),
		array (244480, 611195, 305600, 366715),
		array (408280, 1020695, 510350, 612420),
		array (681825, 1704565, 852280, 1022740) // Level 20
	);

	// Barrera - Clay
	$barroCost = array (
		array (0, 0, 0, 0),
		array (80, 40, 80, 50),
		array (135, 65, 135, 85),
		array (225, 110, 225, 140),
		array (375, 185, 375, 235),
		array (620, 310, 620, 390),	// Level 5
		array (1040, 520, 1040, 650),
		array (1735, 870, 1735, 1085),
		array (2900, 1450, 2900, 1810),
		array (4840, 2420, 4840, 3025),
		array (8080, 4040, 8080, 5050),	// Level 10
		array (13500, 6750, 13500, 8435),
		array (22540, 11270, 22540, 14090),
		array (37645, 18820, 37645, 23525),
		array (62865, 31430, 62865, 39290),
		array (104985, 52490, 104985, 65615),	// Level 15
		array (175320, 87660, 175320, 109575),
		array (292790, 146395, 292790, 182995),
		array (488955, 244480, 488955, 305600),
		array (816555, 408280, 816555, 510350),
		array (1363650, 681825, 1363650, 852280)	// Level 20
	);

	// Mina de hierro - Iron
	$hierroCost = array (
		array (0, 0, 0, 0),
		array (100, 80, 30, 60),
		array (165, 135, 50, 100),
		array (280, 225, 85, 165),
		array (465, 375, 140, 280),
		array (780, 620, 235, 465),	// Level 5
		array (1300, 1040, 390, 780),
		array (2170, 1735, 650, 1300),
		array (3625, 2900, 1085, 2175),
		array (6050, 4840, 1815, 3630),
		array (10105, 8080, 3030, 6060),	// Level 10
		array (16870, 13500, 5060, 10125),
		array (28175, 22540, 8455, 16905),
		array (47055, 37645, 14115, 28230),
		array (78580, 62865, 23575, 47150),
		array (131230, 104985, 39370, 78740),	// Level 15
		array (219155, 175320, 65745, 131490),
		array (365985, 292790, 109795, 219590),
		array (611195, 488955, 183360, 366715),
		array (1020695, 816555, 306210, 612420),
		array (1704565, 1363650, 511370, 1022740)	// Level 20
	);


	// Granja - Crop
	$cerealCost = array (
		array (0, 0, 0, 0),
		array (70, 90, 70, 20),
		array (115, 150, 115, 35),
		array (195, 250, 195, 55),
		array (325, 420, 325, 95),
		array (545, 700, 545, 155),	// Level 5
		array (910, 1170, 910, 260),
		array (1520, 1950, 1520, 435),
		array (2535, 3260, 2535, 725),
		array (4235, 5445, 4235, 1210),
		array (7070, 9095, 7070, 2020),	// Level 10
		array (11810, 15185, 11810, 3375),
		array (19725, 25360, 19725, 5635),
		array (32940, 42350, 32940, 9410),
		array (55005, 70720, 55005, 15715),
		array (91860, 118105, 91860, 26245),	// Level 15
		array (153405, 197240, 153405, 43830),
		array (256190, 329385, 256190, 73195),
		array (427835, 550075, 427835, 122240),
		array (714485, 918625, 714485, 204140),
		array (1193195, 1534105, 1193195, 340915)	// Level 20
	);

	// Almacen - warehouse
	$warehouseCost = array (
		array (0, 0, 0, 0),
		array (130, 160, 90, 40),
		array (165, 205, 115, 50),
		array (215, 260, 145, 65),
		array (275, 335, 190, 85),
		array (350, 430, 240, 105),	// Level 5
		array (445, 550, 310, 135),
		array (570, 705, 395, 175),
		array (730, 900, 505, 225),
		array (935, 1155, 650, 290),
		array (1200, 1475, 830, 370),	// Level 10
		array (1535, 1890, 1065, 470),
		array (1965, 2420, 1360, 605),
		array (2515, 3095, 1740, 775),
		array (3220, 3960, 2230, 990),
		array (4120, 5070, 2850, 1270),	// Level 15
		array (5275, 6490, 3650, 1625),
		array (6750, 8310, 4675, 2075),
		array (8640, 10635, 5980, 2660),
		array (11060, 13610, 7655, 3405),
		array (14155, 17420, 9800, 4355)	// Level 20
	);

	// Academia
	$academyCost = array (
		array (0, 0, 0, 0), 			// Level 0
		array (220, 160, 90, 40),
		array (280, 205, 115, 50),
		array (360, 260, 145, 65),
		array (460, 335, 190, 85),
		array (590, 430, 240, 105),	// Level 5
		array (755, 550, 310, 135),
		array (970, 705, 395, 175),
		array (1240, 900, 505, 225),
		array (1585, 1155, 650, 290),
		array (2030, 1475, 830, 370),	// Level 10
		array (2595, 1890, 1065, 470),
		array (3325, 2420, 1360, 605),
		array (4255, 3095, 1740, 775),
		array (5445, 3960, 2230, 990),
		array (6970, 5070, 2850, 1270),	// Level 15
		array (8925, 6490, 3650, 1625),
		array (11425, 8310, 4675, 2075),
		array (14620, 10635, 5980, 2660),
		array (18715, 13610, 7655, 3405),
		array (23955, 17420, 9800, 4355)	// Level 20
	);

	// Molino - Mill
	$flourMillCost = array (
		array (0, 0, 0, 0), 			// Level 0
		array (500, 440, 380, 1240),
		array (900, 790, 685, 2230),
		array (1620, 1425, 1230, 4020),
		array (2915, 2565, 2215, 7230),
		array (5250, 4620, 3990, 13015) // Level 5
	);

	// Ladrillar - 
	$brickyardCost = array (
		array (0, 0, 0, 0), 			// Level 0
		array (440, 480, 320, 50),
		array (790, 865, 575, 90),
		array (1425, 1555, 1035, 160),
		array (2565, 2800, 1865, 290),
		array (4620, 5040, 3360, 525)	// Level 5
	);

	// Serreria
	$sawmillCost = array (
		array (0, 0, 0, 0), 			// Level 0
		array (520, 380, 290, 90),
		array (935, 685, 520, 160),
		array (1685, 1230, 940, 290),
		array (3035, 2215, 1690, 525),
		array (5460, 3990, 3045, 945)	// Level 5
	);

	// Fundicion de hierro
	$ironFoundryCost = array (
		array (0, 0, 0, 0), 			// Level 0
		array (200, 450, 510, 120),
		array (360, 810, 920, 215),
		array (650, 1460, 1650, 390),
		array (1165, 2625, 2975, 700),
		array (2100, 4725, 5355, 1260)	// Level 5
	);

	// Panaderia
	$bakeryCost = array (
		array (0, 0, 0, 0), 			// Level 0
		array (1200, 1480, 870, 1600),
		array (2160, 2665, 1565, 2880),
		array (3890, 4795, 2820, 5185),
		array (7000, 8630, 5075, 9330),
		array (12595, 15535, 9135, 16795)	// Level 5
	);

	// Mercado
	$marketplaceCost = array (
		array (0, 0, 0, 0), 			// Level 0
		array (80, 70, 120, 70),
		array (100, 90, 155, 90),
		array (130, 115, 195, 115),
		array (170, 145, 250, 145),
		array (215, 190, 320, 190),	// Level 5
		array (275, 240, 410, 240),
		array (350, 310, 530, 310),
		array (450, 395, 675, 395),
		array (575, 505, 865, 505),
		array (740, 645, 1105, 645),	// Level 10
		array (945, 825, 1415, 825),
		array (1210, 1060, 1815, 1060),
		array (1545, 1355, 2320, 1355),
		array (1980, 1735, 2970, 1735),
		array (2535, 2220, 3805, 2220),	// Level 15
		array (3245, 2840, 4870, 2840),
		array (4155, 3635, 6230, 3635),
		array (5315, 4650, 7975, 4650),
		array (6805, 5955, 10210, 5955),
		array (8710, 7620, 13065, 7620)	// Level 20
	);

	// Granero
	$granaryCost = array (
		array (0, 0, 0, 0),
		array (80, 100, 70, 20),
		array (100, 130, 90, 25),
		array (130, 165, 115, 35),
		array (170, 210, 145, 40),
		array (215, 270, 190, 55),	// Level 5
		array (275, 345, 240, 70),
		array (350, 440, 310, 90),
		array (450, 565, 395, 115),
		array (575, 720, 505, 145),
		array (740, 920, 645, 185),	// Level 10
		array (945, 1180, 825, 235),
		array (1210, 1510, 1060, 300),
		array (1545, 1935, 1355, 385),
		array (1980, 2475, 1735, 495),
		array (2535, 3170, 2220, 635),	// Level 15
		array (3245, 4055, 2840, 810),
		array (4155, 5190, 3635, 1040),
		array (5315, 6645, 4650, 1330),
		array (6805, 8505, 5955, 1700),
		array (8710, 10890, 7620, 2180)	// Level 20
	);

	// Armeria
	$blacksmithCost = array (
		array (0, 0, 0, 0),
		array (170, 200, 380, 130),
		array (220, 255, 485, 165),
		array (280, 330, 625, 215),
		array (355, 420, 795, 275),
		array (455, 535, 1020, 350),	// Level 5
		array (585, 685, 1305, 445),
		array (750, 880, 1670, 570),
		array (955, 1125, 2140, 730),
		array (1225, 1440, 2740, 935),
		array (1570, 1845, 3505, 1200),	// Level 10
		array (2005, 2360, 4485, 1535),
		array (2570, 3020, 5740, 1965),
		array (3290, 3870, 7350, 2515),
		array (4210, 4950, 9410, 3220),
		array (5390, 6340, 12045, 4120),	// Level 15
		array (6895, 8115, 15415, 5275),
		array (8825, 10385, 19730, 6750),
		array (11300, 13290, 25255, 8640),
		array (14460, 17015, 32325, 11060),
		array (18510, 21780, 41380, 14155)	// Level 20
	);

	// Armamentaria
	$armouryCost = array (
		array (0, 0, 0, 0),
		array (130, 210, 410, 130),
		array (165, 270, 525, 165),
		array (215, 345, 670, 215),
		array (275, 440, 860, 275),
		array (350, 565, 1100, 350),	// Level 5
		array (445, 720, 1410, 445),
		array (570, 925, 1805, 570),
		array (730, 1180, 2310, 730),
		array (935, 1515, 2955, 935),
		array (1200, 1935, 3780, 1200),	// Level 10
		array (1535, 2480, 4840, 1535),
		array (1965, 3175, 6195, 1965),
		array (2515, 4060, 7930, 2515),
		array (3220, 5200, 10150, 3220),
		array (4120, 6655, 12995, 4120),	// Level 15
		array (5275, 8520, 16630, 5275),
		array (6750, 10905, 21290, 6750),
		array (8640, 13955, 27250, 8640),
		array (11060, 17865, 34880, 11060),
		array (14155, 22865, 44645, 14155)	// Level 20
	);

	// Edificio principal
	$mainBuildingCost = array (
		array (0, 0, 0, 0),
		array (70, 40, 60, 20),
		array (90, 50, 75, 25),
		array (115, 65, 100, 35),
		array (145, 85, 125, 40),
		array (190, 105, 160, 55),	// Level 5
		array (240, 135, 205, 70),
		array (310, 175, 265, 90),
		array (395, 225, 340, 115),
		array (505, 290, 430, 145),
		array (645, 370, 555, 185),	// Level 10
		array (825, 470, 710, 235),
		array (1060, 605, 905, 300),
		array (1355, 775, 1160, 385),
		array (1735, 990, 1485, 495),
		array (2220, 1270, 1900, 635),	// Level 15
		array (2840, 1625, 2435, 810),
		array (3635, 2075, 3115, 1040),
		array (4650, 2660, 3990, 1330),
		array (5955, 3405, 5105, 1700),
		array (7620, 4355, 6535, 2180)	// Level 20
	);

	// Plaza de reuniones
	$rallyPointCost = array (
		array (0, 0, 0, 0),
		array (110, 160, 90, 70),
		array (140, 205, 115, 90),
		array (180, 260, 145, 115),
		array (230, 335, 190, 145),
		array (295, 430, 240, 190),	// Level 5
		array (380, 550, 310, 240),
		array (485, 705, 395, 310),
		array (620, 900, 505, 395),
		array (795, 1155, 650, 505),
		array (1015, 1475, 830, 645),	//Level 10
		array (1300, 1890, 1065, 825),
		array (1660, 2420, 1360, 1060),
		array (2130, 3095, 1740, 1355),
		array (2725, 3960, 2230, 1735),
		array (3485, 5070, 2850, 2220),	// Level 15
		array (4460, 6490, 3650, 2840),
		array (5710, 8310, 4675, 3635),
		array (7310, 10635, 5980, 4650),
		array (9360, 13610, 7655, 5955),
		array (11980, 17420, 9800, 7620)	// Level 20
	);

	// Embajada
	$embassyCost = array (
		array (0, 0, 0, 0),
		array (180, 130, 150, 80),
		array (230, 165, 190, 100),
		array (295, 215, 245, 130),
		array (375, 275, 315, 170),
		array (485, 350, 405, 215),	// Level 5
		array (620, 445, 515, 275),
		array (790, 570, 660, 350),
		array (1015, 730, 845, 450),
		array (1295, 935, 1080, 575),
		array (1660, 1200, 1385, 740),	// Level 10
		array (2125, 1535, 1770, 945),
		array (2720, 1965, 2265, 1210),
		array (3480, 2515, 2900, 1545),
		array (4455, 3220, 3715, 1980),
		array (5705, 4120, 4755, 2535),	// Level 15
		array (7300, 5275, 6085, 3245),
		array (9345, 6750, 7790, 4155),
		array (11965, 8640, 9970, 5315),
		array (15315, 11060, 12760, 6805),
		array (19600, 14155, 16335, 8710)	// Level 20
	);

	// Cuartel
	$barracksCost = array (
		array (0, 0, 0, 0),
		array (210, 140, 260, 120),
		array (270, 180, 335, 155),
		array (345, 230, 425, 195),
		array (440, 295, 545, 250),
		array (565, 375, 700, 320),	// Level 5
		array (720, 480, 895, 410),
		array (925, 615, 1145, 530),
		array (1180, 790, 1465, 675),
		array (1515, 1010, 1875, 865),
		array (1935, 1290, 2400, 1105),	// Level 10
		array (2480, 1655, 3070, 1415),
		array (3175, 2115, 3930, 1815),
		array (4060, 2710, 5030, 2320),
		array (5200, 3465, 6435, 2970),
		array (6655, 4435, 8240, 3805),	// Level 15
		array (8520, 5680, 10545, 4870),
		array (10905, 7270, 13500, 6230),
		array (13955, 9305, 17280, 7975),
		array (17865, 11910, 22120, 10210),
		array (22865, 15245, 28310, 13065)	// Level 20
	);

	// Corral / Establo
	$stableCost = array (
		array (0, 0, 0, 0),
		array (260, 140, 220, 100),
		array (335, 180, 280, 130),
		array (425, 230, 360, 165),
		array (545, 295, 460, 210),
		array (700, 375, 590, 270),	//Level 5
		array (895, 480, 755, 345),
		array (1145, 615, 970, 440),
		array (1465, 790, 1240, 565),
		array (1875, 1010, 1585, 720),
		array (2400, 1290, 2030, 920),	// Level 10
		array (3070, 1655, 2595, 1180),
		array (3930, 2115, 3325, 1510),
		array (5030, 2710, 4255, 1935),
		array (6435, 3465, 5445, 2475),
		array (8240, 4435, 6970, 3170),	// Level 15
		array (10545, 5680, 8925, 4055),
		array (13500, 7270, 11425, 5190),
		array (17280, 9305, 14620, 6645),
		array (22120, 11910, 18715, 8505),
		array (28310, 15245, 23955, 10890)	// Level 20
	);

	// Taller
	$workshopCost = array (
		array (0, 0, 0, 0),
		array (460, 510, 600, 320),
		array (590, 655, 770, 410),
		array (755, 835, 985, 525),
		array (965, 1070, 1260, 670),
		array (1235, 1370, 1610, 860),	// Level 5
		array (1580, 1750, 2060, 1100),
		array (2025, 2245, 2640, 1405),
		array (2590, 2870, 3380, 1800),
		array (3315, 3675, 4325, 2305),
		array (4245, 4705, 5535, 2950),	// Level 10
		array (5430, 6020, 7085, 3780),
		array (6950, 7705, 9065, 4835),
		array (8900, 9865, 11605, 6190),
		array (11390, 12625, 14855, 7925),
		array (14580, 16165, 19015, 10140),	// Level 15
		array (18660, 20690, 24340, 12980),
		array (23885, 26480, 31155, 16615),
		array (30570, 33895, 39875, 21270),
		array (39130, 43385, 51040, 27225),
		array (50090, 55535, 65335, 34845)	// Level 20
	);

	// Escondite - Cranny
	$crannyCost = array (
		array (0, 0, 0, 0),
		array (40, 50, 30, 10),
		array (50, 65, 40, 15),
		array (65, 80, 50, 15),
		array (85, 105, 65, 20),
		array (105, 135, 80, 25),	// Level 5
		array (135, 170, 105, 35),
		array (175, 220, 130, 45),
		array (225, 280, 170, 55),
		array (290, 360, 215, 70),
		array (370, 460, 275, 90)	// Level 10
	);

	// Ayuntamiento - Townhall
	$ayuntamientoCost = array (
		array (0, 0, 0, 0),
		array (1250, 1110, 1260, 600),
		array (1600, 1420, 1615, 770),
		array (2050, 1820, 2065, 985),
		array (2620, 2330, 2640, 1260),
		array (3355, 2980, 3380, 1610),	// Level 5
		array (4295, 3815, 4330, 2060),
		array (5500, 4880, 5540, 2640),
		array (7035, 6250, 7095, 3380),
		array (9005, 8000, 9080, 4325),
		array (11530, 10240, 11620, 5535),	// Level 10
		array (14755, 13105, 14875, 7085),
		array (18890, 16775, 19040, 9065),
		array (24180, 21470, 24370, 11605),
		array (30950, 27480, 31195, 14855),
		array (39615, 35175, 39930, 19015),	// Level 15
		array (50705, 45025, 51110, 24340),
		array (64905, 57635, 65425, 31155),
		array (83075, 73770, 83740, 39875),
		array (106340, 94430, 107190, 51040),
		array (136115, 120870, 137200, 65335)	// Level 20
	);

	// Residencia
	$residenceCost = array (
		array (0, 0, 0, 0),
		array (580, 460, 350, 180),
		array (740, 590, 450, 230),
		array (950, 755, 575, 295),
		array (1215, 965, 735, 375),
		array (1555, 1235, 940, 485),	// Level 5
		array (1995, 1580, 1205, 620),
		array (2550, 2025, 1540, 790),
		array (3265, 2590, 1970, 1015),
		array (4180, 3315, 2520, 1295),
		array (5350, 4245, 3230, 1660),	// Level 10
		array (6845, 5430, 4130, 2125),
		array (8765, 6950, 5290, 2720),
		array (11220, 8900, 6770, 3480),
		array (14360, 11390, 8665, 4455),
		array (18380, 14580, 11090, 5705),	// Level 15
		array (23530, 18660, 14200, 7300),
		array (30115, 23885, 18175, 9345),
		array (38550, 30570, 23260, 11965),
		array (49340, 39130, 29775, 15315),
		array (63155, 50090, 38110, 19600)	// Level 20
	);

	// Palacio
	$palaceCost = array (
		array (0, 0, 0, 0),
		array (550, 800, 750, 250),
		array (705, 1025, 960, 320),
		array (900, 1310, 1230, 410),
		array (1155, 1680, 1575, 525),
		array (1475, 2145, 2015, 670),	// Level 5
		array (1890, 2750, 2575, 860),
		array (2420, 3520, 3300, 1100),
		array (3095, 4505, 4220, 1405),
		array (3965, 5765, 5405, 1800),
		array (5075, 7380, 6920, 2305),	// Level 10
		array (6495, 9445, 8855, 2950),
		array (8310, 12090, 11335, 3780),
		array (10640, 15475, 14505, 4835),
		array (13615, 19805, 18570, 6190),
		array (17430, 25355, 23770, 7925),	// Level 15
		array (22310, 32450, 30425, 10140),
		array (28560, 41540, 38940, 12980),
		array (36555, 53170, 49845, 16615),
		array (46790, 68055, 63805, 21270),
		array (59890, 87110, 81670, 27225)	// Level 20
	);

	// Plaza de torneos
	$tournamentSquareCost = array (
		array (0, 0, 0, 0),
		array (1750, 2250, 1530, 240),
		array (2240, 2880, 1960, 305),
		array (2865, 3685, 2505, 395),
		array (3670, 4720, 3210, 505),
		array (4700, 6040, 4105, 645),	// Level 5
		array (6015, 7730, 5255, 825),
		array (7695, 9895, 6730, 1055),
		array (9850, 12665, 8615, 1350),
		array (12610, 16215, 11025, 1730),
		array (16140, 20755, 14110, 2215),	// Level 10
		array (20660, 26565, 18065, 2835),
		array (26445, 34000, 23120, 3625),
		array (33850, 43520, 29595, 4640),
		array (43330, 55705, 37880, 5940),
		array (55460, 71305, 48490, 7605),	// Level 15
		array (70990, 91270, 62065, 9735),
		array (90865, 116825, 79440, 12460),
		array (116305, 149540, 101685, 15950),
		array (148875, 191410, 130160, 20415),
		array (190560, 245005, 166600, 26135)	// Level 20
	);

	// Tesoro - Treasury
	$tesoroCost = array (
		array (0, 0, 0, 0),
		array (2880, 2740, 2580, 990),
		array (3685, 3505, 3300, 1265),
		array (4720, 4490, 4225, 1620),
		array (6040, 5745, 5410, 2075),
		array (7730, 7355, 6925, 2660),	// Level 5
		array (9895, 9415, 8865, 3400),
		array (12665, 12050, 11345, 4355),
		array (16215, 15425, 14525, 5575),
		array (20755, 19745, 18590, 7135),
		array (26565, 25270, 23795, 9130)	// Level 10
	);

	// Oficina de comercio - Trade office
	$oficinaComercioCost = array (
		array (0, 0, 0, 0),
		array (1400, 1330, 1200, 400),
		array (1790, 1700, 1535, 510),
		array (2295, 2180, 1965, 655),
		array (2935, 2790, 2515, 840),
		array (3760, 3570, 3220, 1075),	// Level 5
		array (4810, 4570, 4125, 1375),
		array (6155, 5850, 5280, 1760),
		array (7880, 7485, 6755, 2250),
		array (10090, 9585, 8645, 2880),
		array (12915, 12265, 11070, 3690),	// Level 10
		array (16530, 15700, 14165, 4720),
		array (21155, 20100, 18135, 6045),
		array (27080, 25725, 23210, 7735),
		array (34660, 32930, 29710, 9905),
		array (44370, 42150, 38030, 12675),	// Level 15
		array (56790, 53950, 48680, 16225),
		array (72690, 69060, 62310, 20770),
		array (93045, 88395, 79755, 26585),
		array (119100, 113145, 102085, 34030),
		array (152445, 144825, 130670, 43555)	// Level 20
	);

	// Cuartel grande
	$greatBarrackCost = array (
		array (0, 0, 0, 0),
		array (630, 420, 780, 360),
		array (805, 540, 1000, 460),
		array (1030, 690, 1280, 590),
		array (1320, 880, 1635, 755),
		array (1690, 1125, 2095, 965),	// Level 5
		array (2165, 1445, 2680, 1235),
		array (2770, 1845, 3430, 1585),
		array (3545, 2365, 4390, 2025),
		array (4540, 3025, 5620, 2595),
		array (5810, 3875, 7195, 3320),	// Level 10
		array (7440, 4960, 9210, 4250),
		array (9520, 6345, 11785, 5440),
		array (12185, 8125, 15085, 6965),
		array (15600, 10400, 19310, 8915),
		array (19965, 13310, 24720, 11410),	// Level 15
		array (25555, 17035, 31640, 14605),
		array (32710, 21810, 40500, 18690),
		array (41870, 27915, 51840, 23925),
		array (53595, 35730, 66355, 30625),
		array (68600, 45735, 84935, 39200)	// Level 20
	);

	// Corral / Establo grande
	$greatStableCost = array (
		array (0, 0, 0, 0),
		array (780, 420, 660, 300),
		array (1000, 540, 845, 385),
		array (1280, 690, 1080, 490),
		array (1635, 880, 1385, 630),
		array (2095, 1125, 1770, 805),	// Level 5
		array (2680, 1445, 2270, 1030),
		array (3430, 1845, 2905, 1320),
		array (4390, 2365, 3715, 1690),
		array (5620, 3025, 4755, 2160),
		array (7195, 3875, 6085, 2765),	// Level 10
		array (9210, 4960, 7790, 3540),
		array (11785, 6345, 9975, 4535),
		array (15085, 8125, 12765, 5805),
		array (19310, 10400, 16340, 7430),
		array (24720, 13310, 20915, 9505),	// Level 15
		array (31640, 17035, 26775, 12170),
		array (40500, 21810, 34270, 15575),
		array (51840, 27915, 43865, 19940),
		array (66355, 35730, 56145, 25520),
		array (84935, 45735, 71870, 32665)	// Level 20
	);

	// Muralla
	$wallRomansCost = array (
		array (0, 0, 0, 0),
		array (70, 90, 170, 70),
		array (90, 115, 220, 90),
		array (115, 145, 280, 115),
		array (145, 190, 355, 145),
		array (190, 240, 455, 190),	// Level 5
		array (240, 310, 585, 240),
		array (310, 395, 750, 310),
		array (395, 505, 955, 395),
		array (505, 650, 1225, 505),
		array (645, 830, 1570, 645),	// LEvel 10
		array (825, 1065, 2005, 825),
		array (1060, 1360, 2570, 1060),
		array (1355, 1740, 3290, 1355),
		array (1735, 2230, 4210, 1735),
		array (2220, 2850, 5390, 2220),	// Level 15
		array (2840, 3650, 6895, 2840),
		array (3635, 4675, 8825, 3635),
		array (4650, 5980, 11300, 4650),
		array (5955, 7655, 14460, 5955),
		array (7620, 9800, 18510, 7620)	// Level 20
	);

	// Empalizada
	$wallGaulsCost = array (
		array (0, 0, 0, 0),
		array (160, 100, 80, 60),
		array (205, 130, 100, 75),
		array (260, 165, 130, 100),
		array (335, 210, 170, 125),
		array (430, 270, 215, 160),	// Level 5
		array (550, 345, 275, 205),
		array (705, 440, 350, 265),
		array (900, 565, 450, 340),
		array (1155, 720, 575, 430),
		array (1475, 920, 740, 555),	// Level 10
		array (1890, 1180, 945, 710),
		array (2420, 1510, 1210, 905),
		array (3095, 1935, 1545, 1160),
		array (3960, 2475, 1980, 1485),
		array (5070, 3170, 2535, 1900),	// Level 15
		array (6490, 4055, 3245, 2435),
		array (8310, 5190, 4155, 3115),
		array (10635, 6645, 5315, 3990),
		array (13610, 8505, 6805, 5105),
		array (17420, 10890, 8710, 6535)	// Level 20
	);

	// Terraplen
	$wallTeutonsCost = array (
		array (0, 0, 0, 0),
		array (120, 200, 0, 80),
		array (155, 255, 0, 100),
		array (195, 330, 0, 130),
		array (250, 420, 0, 170),
		array (320, 535, 0, 215),	// Level 5
		array (410, 685, 0, 275),
		array (530, 880, 0, 350),
		array (675, 1125, 0, 450),
		array (865, 1440, 0, 575),
		array (1105, 1845, 0, 740),	// Level 10
		array (1415, 2360, 0, 945),
		array (1815, 3020, 0, 1210),
		array (2320, 3870, 0, 1545),
		array (2970, 4950, 0, 1980),
		array (3805, 6340, 0, 2535),	// Level 15
		array (4870, 8115, 0, 3245),
		array (6230, 10385, 0, 4155),
		array (7975, 13290, 0, 5315),
		array (10210, 17015, 0, 6805),
		array (13065, 21780, 0, 8710)	// Level 20
	);
	
	// Cerbeceria - Brewery
	$cerveceriaCost = array (
		array (0, 0, 0, 0),
		array (1200, 1400, 1050, 2200),
		array (1535, 1790, 1345, 2815),
		array (1965, 2295, 1720, 3605),
		array (2515, 2935, 2200, 4615),
		array (3220, 3760, 2820, 5905),	// Level 5
		array (4125, 4810, 3610, 7560),
		array (5280, 6155, 4620, 9675),
		array (6755, 7880, 5910, 12385),
		array (8645, 10090, 7565, 15855),
		array (11070, 12915, 9685, 20290),	// Level 10
		array (14165, 16530, 12395, 25975),
		array (18135, 21155, 15865, 33245),
		array (23210, 27080, 20310, 42555),
		array (29710, 34660, 25995, 54470),
		array (38030, 44370, 33275, 69720),	// Level 15
		array (48680, 56790, 42595, 89245),
		array (62310, 72690, 54520, 114230),
		array (79755, 93045, 69785, 146215),
		array (102085, 119100, 89325, 187155),
		array (130670, 152445, 114335, 239560)	// Level 20
	);
	
	// Mansion del Heroe - Hero's mansion
	$casaHeroeCost = array (
		array (0, 0, 0, 0),
		array (700, 670, 700, 240),
		array (930, 890, 930, 320),
		array (1240, 1185, 1240, 425),
		array (1645, 1575, 1645, 565),
		array (2190, 2095, 2190, 750),	// Level 5
		array (2915, 2790, 2915, 1000),
		array (3875, 3710, 3875, 1330),
		array (5155, 4930, 5155, 1765),
		array (6855, 6560, 6855, 2350),
		array (9115, 8725, 9115, 3125),	// Level 10
		array (12125, 11605, 12125, 4155),
		array (16125, 15435, 16125, 5530),
		array (21445, 20525, 21445, 7350),
		array (28520, 27300, 28520, 9780),
		array (37935, 36310, 37935, 13005),	// Level 15
		array (50450, 48290, 50450, 17300),
		array (67100, 64225, 67100, 23005),
		array (89245, 85420, 89245, 30600),
		array (118695, 113605, 118695, 40695),
		array (157865, 151095, 157865, 54125)	// Level 20
	);

	// Trampero - Trapper
	$trampaCost = array (
		array (0, 0, 0, 0),
		array (100, 100, 100, 100),
		array (130, 130, 130, 130),
		array (165, 165, 165, 165),
		array (210, 210, 210, 210),
		array (270, 270, 270, 270),	// Level 5
		array (345, 345, 345, 345),
		array (440, 440, 440, 440),
		array (565, 565, 565, 565),
		array (720, 720, 720, 720),
		array (920, 920, 920, 920),	// Level 10
		array (1180, 1180, 1180, 1180),
		array (1510, 1510, 1510, 1510),
		array (1935, 1935, 1935, 1935),
		array (2475, 2475, 2475, 2475),
		array (3170, 3170, 3170, 3170),	// Level 15
		array (4055, 4055, 4055, 4055),
		array (5190, 5190, 5190, 5190),
		array (6645, 6645, 6645, 6645),
		array (8505, 8505, 8505, 8505),
		array (10890, 10890, 10890, 10890)	// Level 20
	);

	// Cantero - Stonemason
	$canteroCost = array (
		array (0, 0, 0, 0),
		array (155, 130, 125, 70),
		array (200, 165, 160, 90),
		array (255, 215, 205, 115),
		array (325, 275, 260, 145),
		array (415, 350, 335, 190),	// Level 5
		array (535, 445, 430, 240),
		array (680, 570, 550, 310),
		array (875, 730, 705, 395),
		array (1115, 935, 900, 505),
		array (1430, 1200, 1155, 645),	// Level 10
		array (1830, 1535, 1475, 825),
		array (2340, 1965, 1890, 1060),
		array (3000, 2515, 2420, 1355),
		array (3840, 3220, 3095, 1735),
		array (4910, 4120, 3960, 2220),	// Level 15
		array (6290, 5275, 5070, 2840),
		array (8050, 6750, 6490, 3635),
		array (10300, 8640, 8310, 4650),
		array (13185, 11060, 10635, 5955),
		array (16880, 14155, 13610, 7620)	// Level 20
	);

	// Almacen Grande - Great Warehouse
	$greatWarehouseCost = array (
		array (0, 0, 0, 0),
		array (650, 800, 450, 200),
		array (830, 1025, 575, 255),
		array (1065, 1310, 735, 330),
		array (1365, 1680, 945, 420),
		array (1745, 2145, 1210, 535),	// Level 5
		array (2235, 2750, 1545, 685),
		array (2860, 3520, 1980, 880),
		array (3660, 4505, 2535, 1125),
		array (4685, 5765, 3245, 1440),
		array (5995, 7380, 4150, 1845),	// Level 10
		array (7675, 9445, 5315, 2360),
		array (9825, 12090, 6800, 3020),
		array (12575, 15475, 8705, 3870),
		array (16095, 19805, 11140, 4950),
		array (20600, 25355, 14260, 6340),	// Level 15
		array (26365, 32450, 18255, 8115),
		array (33750, 41540, 23365, 10385),
		array (43200, 53170, 29910, 13290),
		array (55295, 68055, 38280, 17015),
		array (70780, 87110, 49000, 21780)	// Level 20
	);

	// Granero Grande - Great Granary
	$greatGranaryCost = array (
		array (0, 0, 0, 0),
		array (400, 500, 350, 100),
		array (510, 640, 450, 130),
		array (655, 820, 575, 165),
		array (840, 1050, 735, 210),
		array (1075, 1340, 940, 270),	// Level 5
		array (1375, 1720, 1205, 345),
		array (1760, 2200, 1540, 440),
		array (2250, 2815, 1970, 565),
		array (2880, 3605, 2520, 720),
		array (3690, 4610, 3230, 920),	// Level 10
		array (4720, 5905, 4130, 1180),
		array (6045, 7555, 5290, 1510),
		array (7735, 9670, 6770, 1935),
		array (9905, 12380, 8665, 2475),
		array (12675, 15845, 11090, 3170),	// Level 15
		array (16225, 20280, 14200, 4055),
		array (20770, 25960, 18175, 5190),
		array (26585, 33230, 23260, 6645),
		array (34030, 42535, 29775, 8505),
		array (43555, 54445, 38110, 10890)	// Level 20
	);

    // Maravilla - Wonder Of The World
	$maravillaCost = array (
		array (0, 0, 0, 0),
		array (66700, 69050, 72200, 13200),
		array (68535, 70950, 74185, 13565),
		array (70420, 72900, 76225, 13935),
		array (72355, 74905, 78320, 14320),
		array (74345, 76965, 80475, 14715),
		array (76390, 79080, 82690, 15120),
		array (78490, 81255, 84965, 15535),
		array (80650, 83490, 87300, 15960),
		array (82865, 85785, 89700, 16400),
		array (85145, 88145, 92165, 16850),	// Level 10
		array (87485, 90570, 94700, 17315),
		array (89895, 93060, 97305, 17790),
		array (92365, 95620, 99980, 18280),
		array (94905, 98250, 102730, 18780),
		array (97515, 100950, 105555, 19300),
		array (100195, 103725, 108460, 19830),
		array (102950, 106580, 111440, 20375),
		array (105785, 109510, 114505, 20935),
		array (108690, 112520, 117655, 21510),
		array (111680, 115615, 120890, 22100),	// Level 20
		array (114755, 118795, 124215, 22710),
		array (117910, 122060, 127630, 23335),
		array (121150, 125420, 131140, 23975),
		array (124480, 128870, 134745, 24635),
		array (127905, 132410, 138455, 25315),
		array (131425, 136055, 142260, 26010),
		array (135035, 139795, 146170, 26725),
		array (138750, 143640, 150190, 27460),
		array (142565, 147590, 154320, 28215),
		array (146485, 151650, 158565, 28990),	// Level 30
		array (150515, 155820, 162925, 29785),
		array (154655, 160105, 167405, 30605),
		array (158910, 164505, 172010, 31450),
		array (163275, 169030, 176740, 32315),
		array (167770, 173680, 181600, 33200),
		array (172380, 178455, 186595, 34115),
		array (177120, 183360, 191725, 35055),
		array (181995, 188405, 197000, 36015),
		array (186995, 193585, 202415, 37005),
		array (192140, 198910, 207985, 38025),	// Level 40
		array (197425, 204380, 213705, 39070),
		array (202855, 210000, 219580, 40145),
		array (208430, 215775, 225620, 41250),
		array (214165, 221710, 231825, 42385),
		array (220055, 227805, 238200, 43550),
		array (226105, 234070, 244750, 44745),
		array (232320, 240505, 251480, 45975),
		array (238710, 247120, 258395, 47240),
		array (245275, 253915, 265500, 48540),
		array (252020, 260900, 272800, 49875),	// Level 50
		array (258950, 268075, 280305, 51245),
		array (266070, 275445, 288010, 52655),
		array (273390, 283020, 295930, 54105),
		array (280905, 290805, 304070, 55590),
		array (288630, 298800, 312430, 57120),
		array (296570, 307020, 321025, 58690),
		array (304725, 315460, 329850, 60305),
		array (313105, 324135, 338925, 61965),
		array (321715, 333050, 348245, 63670),
		array (330565, 342210, 357820, 65420),	// Level 60
		array (339655, 351620, 367660, 67220),
		array (348995, 361290, 377770, 69065),
		array (358590, 371225, 388160, 70965),
		array (368450, 381435, 398835, 72915),
		array (378585, 391925, 409800, 74920),
		array (388995, 402700, 421070, 76985),
		array (399695, 413775, 432650, 79100),
		array (410685, 425155, 444550, 81275),
		array (421980, 436845, 456775, 83510),
		array (433585, 448860, 469335, 85805),	// Level 70
		array (445505, 461205, 482240, 88165),
		array (457760, 473885, 495505, 90590),
		array (470345, 486920, 509130, 93080),
		array (483280, 500310, 523130, 95640),
		array (496570, 514065, 537520, 98270),
		array (510225, 528205, 552300, 100975),
		array (524260, 542730, 567490, 103750),
		array (538675, 557655, 583095, 106605),
		array (553490, 572990, 599130, 109535),
		array (568710, 588745, 615605, 112550),	// Level 80
		array (584350, 604935, 632535, 115645),
		array (600420, 621575, 649930, 118825),
		array (616930, 638665, 667800, 122090),
		array (633895, 656230, 686165, 125450),
		array (651330, 674275, 705035, 128900),
		array (669240, 692820, 724425, 132445),
		array (687645, 711870, 744345, 136085),
		array (706555, 731445, 764815, 139830),
		array (725985, 751560, 785850, 143675),
		array (745950, 772230, 807460, 147625),	// Level 90
		array (766460, 793465, 829665, 151685),
		array (787540, 815285, 852480, 155855),
		array (809195, 837705, 875920, 160140),
		array (831450, 860745, 900010, 164545),
		array (854315, 884415, 924760, 169070),
		array (877810, 908735, 950190, 173720),
		array (901950, 933725, 976320, 178495),
		array (926750, 959405, 1000000, 183405),
		array (952235, 985785, 1000000, 188450),
		array (1000000, 1000000, 1000000, 193630)	// Level 100
   );
?>
Return current item: Alliances Manager