Skip to content

Commit

Permalink
Update:add soldiers info
Browse files Browse the repository at this point in the history
  • Loading branch information
LidamaoHub committed Mar 18, 2024
1 parent 6cb3a83 commit ea4b060
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,22 @@ const barn = [[7,1,80,100,70,20,1,1600,1200],
[7,20,8710,10890,7620,2180,2,56420,80000],
];

const barracks = [[8, 1, 210, 140, 260, 120, 4, 2000, 100], [8, 2, 270, 180, 335, 155, 2, 2620, 90], [8, 3, 345, 230, 425, 195, 2, 3340, 83], [8, 4, 440, 295, 545, 250, 2, 4170, 71], [8, 5, 565, 375, 700, 320, 2, 5140, 66], [8, 6, 720, 480, 895, 410, 3, 6260, 58], [8, 7, 925, 615, 1145, 530, 3, 7570, 52], [8, 8, 1180, 790, 1465, 675, 3, 9080, 47], [8, 9, 1515, 1010, 1875, 865, 3, 10830, 43], [8, 10, 1935, 1290, 2400, 1105, 3, 12860, 38], [8, 11, 2480, 1655, 3070, 1415, 3, 15220, 34], [8, 12, 3175, 2115, 3930, 1815, 3, 17950, 31], [8, 13, 4060, 2710, 5030, 2320, 3, 21130, 28], [8, 14, 5200, 3465, 6435, 2970, 3, 24810, 25], [8, 15, 6655, 4435, 8240, 3805, 3, 29080, 22], [8, 16, 8520, 5680, 10545, 4870, 4, 34030, 20], [8, 17, 10905, 7270, 13500, 6230, 4, 39770, 18], [8, 18, 13955, 9305, 17280, 7975, 4, 46440, 16], [8, 19, 17865, 11910, 22120, 10210, 4, 54170, 14], [8, 20, 22865, 15245, 28310, 13065, 4, 63130, 13]]
//the last param is the percentage of building time of the soldier, the building time is in the list below
let soldiers = [[40, 35, 6, 50, 120, 100, 150, 30, 1, 1600],
[30, 65, 5, 20, 100, 130, 160, 70, 1, 1760],
[70, 40, 7, 50, 150, 160, 210, 80, 1, 1920],
[0, 20, 16, 0, 140, 160, 20, 40, 2, 1360],
[120, 65, 14, 100, 550, 440, 320, 100, 3, 2640],
[180, 80, 10, 70, 550, 640, 800, 180, 4, 3520],
[60, 30, 4, 0, 900, 360, 500, 70, 3, 4600],
[75, 60, 3, 0, 950, 1350, 600, 90, 6, 9000],
[50, 40, 4, 0, 30750, 27200, 45000, 37500, 5, 4300],
[0, 80, 5, 3000, 4600, 4200, 5800, 4400, 1, 26900]]

// the first 6 soldier build info is for Militia, Guard, Heavy Infantry, Scouts, Knights, Heavy Knights
// The information in the list is: attack power, defense power, movement speed, load capacity, wood, bricks, steel, food, population occupied by soldiers, and time required to build.

// chain wood, brick, stell, food, cityhall, warehouse, barn into a big list
const data = wood.concat(brick, steel, food, cityhall, warehouse, barn);

Expand Down

0 comments on commit ea4b060

Please sign in to comment.