123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376 |
- shipList = {
- {
- model = "Llama",
- cost = 10000,
- hullStrength = 25,
- attack = 10,
- speed = 10,
- maxFuel = 10,
- code = 1
- },
- {
- model = "Pigeon",
- cost = 15000,
- hullStrength = 25,
- attack = 5,
- speed = 11,
- maxFuel = 30,
- code = 2
- },
- {
- model = "Hyena",
- cost = 21000,
- hullStrength = 25,
- attack = 4,
- speed = 0,
- maxFuel = 10,
- code = 3
- },
- {
- model = "Shark",
- cost = 25000,
- hullStrength = 80,
- attack = 4,
- speed = 0,
- maxFuel = 10,
- code = 4
- },
- {
- model = "Mammoth",
- cost = 30000,
- hullStrength = 120,
- attack = 5,
- speed = 0,
- maxFuel = 8,
- code = 5
- },
- {
- model = "Koala",
- cost = 37000,
- hullStrength = 80,
- attack = 3,
- speed = 0,
- maxFuel = 20,
- code = 6
- },
- {
- model = "Spider",
- cost = 45000,
- hullStrength = 50,
- attack = 4,
- speed = 0,
- maxFuel = 100,
- code = 7
- },
- {
- model = "Gorilla",
- cost = 53000,
- hullStrength = 70,
- attack = 5,
- speed = 0,
- maxFuel = 120,
- code = 8
- },
- {
- model = "Giraffe",
- cost = 64000,
- hullStrength = 196,
- attack = 10,
- speed = 0,
- maxFuel = 10,
- code = 9
- },
- {
- model = "Stork",
- cost = 78000,
- hullStrength = 237,
- attack = 13,
- speed = 0,
- maxFuel = 10,
- code = 10
- },
- {
- model = "Elephant",
- cost = 94000,
- hullStrength = 285,
- attack = 15,
- speed = 0,
- maxFuel = 10,
- code = 11
- },
- {
- model = "Mule",
- cost = 110000,
- hullStrength = 344,
- attack = 19,
- speed = 0,
- maxFuel = 10,
- code = 12
- },
- {
- model = "Tiger",
- cost = 130000,
- hullStrength = 414,
- attack = 22,
- speed = 0,
- maxFuel = 10,
- code = 13
- },
- {
- model = "Rhino",
- cost = 160000,
- hullStrength = 499,
- attack = 27,
- speed = 0,
- maxFuel = 10,
- code = 14
- },
- {
- model = "Pelican",
- cost = 200000,
- hullStrength = 601,
- attack = 33,
- speed = 0,
- maxFuel = 10,
- code = 15
- },
- {
- model = "Penguin",
- cost = 240000,
- hullStrength = 724,
- attack = 40,
- speed = 0,
- maxFuel = 10,
- code = 16
- },
- {
- model = "Moose",
- cost = 290000,
- hullStrength = 873,
- attack = 48,
- speed = 0,
- maxFuel = 10,
- code = 17
- },
- {
- model = "Zebra",
- cost = 340000,
- hullStrength = 1052,
- attack = 58,
- speed = 1,
- maxFuel = 10,
- code = 18
- },
- {
- model = "Kestrel",
- cost = 420000,
- hullStrength = 1267,
- attack = 70,
- speed = 1,
- maxFuel = 10,
- code = 19
- }
- }
- for i, ship in ipairs(shipList) do
- shipList[ship.model] = ship
- end
- commodityList = {
- {
- name = "Water",
- baseCost = 50,
- baseStock = 30,
- legal = true,
- expensiveText = "I have heard there is a drought.",
- cheapText = "A new water source was discovered."
- },
- {
- name = "Furs",
- baseCost = 300,
- baseStock = 30,
- legal = true,
- expensiveText = "Weather is colder than usual.",
- cheapText = "Weather is warmer than usual."
- },
- {
- name = "Food",
- baseCost = 100,
- baseStock = 60,
- legal = true,
- expensiveText = "There are rumors of a famine.",
- cheapText = "There was a high crop yield."
- },
- {
- name = "Ore",
- baseCost = 500,
- baseStock = 30,
- legal = true,
- expensiveText = "There are rumors of war.",
- cheapText = "A peace agreement is predicted."
- },
- {
- name = "Games",
- baseCost = 200,
- baseStock = 10,
- legal = true,
- expensiveText = "The birth rate is rising.",
- cheapText = "The birth rate is decreasing."
- },
- {
- name = "Guns",
- baseCost = 900,
- baseStock = 30,
- legal = true,
- expensiveText = "Terrorism is on the rise.",
- cheapText = "Terrorism has been stamped out."
- },
- {
- name = "Medicine",
- baseCost = 500,
- baseStock = 30,
- legal = true,
- expensiveText = "A terrible virus is spreading.",
- cheapText = "The plague is under control."
- },
- {
- name = "Computers",
- baseCost = 800,
- baseStock = 60,
- legal = true,
- expensiveText = "There was a technological collapse.",
- cheapText = "There was a technological boom."
- },
- {
- name = "Narcotics",
- baseCost = 2500,
- baseStock = 10,
- legal = true,
- expensiveText = "Drug addiction rates are high.",
- cheapText = "Drug addiction rates are low."
- },
- {
- name = "Machinery",
- baseCost = 1000,
- baseStock = 30,
- legal = true,
- expensiveText = "They are rapidly industrializing.",
- cheapText = "Manufacturing is in decline."
- }
- }
- for i, commodity in ipairs(commodityList) do
- commodityList[commodity.name] = commodity
- commodity.code = i
- end
- serviceList = {
- {
- name = "Repair Ship",
- cost = 125
- },
- {
- name = "Refuel Ship",
- cost = 75
- },
- {
- name = "Sleep 1 Night",
- cost = 5
- },
- {
- name = "Sleep 10 Nights",
- cost = 50
- }
- }
- for i, service in ipairs(serviceList) do
- serviceList[service.name] = service
- end
- sun = {
- name = "Sun",
- coordinates = { x = 79, y = 79 }
- }
- planetList = {
- {
- name = "Mercury",
- shipyard = { "Llama", "Hyena", "Shark", "Pigeon" },
- startingCoordinates = { x = 100, y = 100 },
- lawfulRating = 0.5,
- code = 1,
- yearTime = 88
- },
- {
- name = "Venus",
- shipyard = { "Llama", "Hyena", "Shark" },
- startingCoordinates = { x = 122, y = 122 },
- lawfulRating = 0.75,
- code = 2,
- yearTime = 225
- },
- {
- name = "Earth",
- shipyard = { "Llama", "Hyena", "Shark" },
- startingCoordinates = { x = 140, y = 140 },
- lawfulRating = 0.9,
- code = 3,
- yearTime = 365
- },
- {
- name = "Mars",
- shipyard = { "Llama", "Hyena", "Shark", "Koala", "Spider", "Gorilla" },
- startingCoordinates = { x = 174, y = 174 },
- lawfulRating = 0.85,
- code = 4,
- yearTime = 687
- },
- {
- name = "Jupiter",
- shipyard = { "Llama", "Hyena", "Shark", "Koala", "Spider", "Gorilla" },
- startingCoordinates = { x = 416, y = 416 },
- lawfulRating = 0.5,
- code = 5,
- yearTime = 4333
- },
- {
- name = "Saturn",
- shipyard = { "Koala", "Spider", "Gorilla" },
- startingCoordinates = { x = 800, y = 800 },
- lawfulRating = 0.3,
- code = 6,
- yearTime = 10756
- }
- }
- for i, planet in ipairs(planetList) do
- planetList[planet.name] = planet
- planet.credits = 1e100
- planet.coordinates = {}
- planet.coordinates.x = planet.startingCoordinates.x
- planet.coordinates.y = planet.startingCoordinates.y
- planet.commodityList = {}
- planet.commodities = {}
- planet.commodityRates = {}
- for j, commodity in ipairs(commodityList) do
- table.insert(planet.commodityList, commodity.name)
- planet.commodityRates[commodity.name] = 1
- planet.commodities[commodity.name] = commodity.baseStock
- end
- end
- local planetConnections = {
- { "Mercury", "Venus" },
- { "Mercury", "Earth" },
- { "Mercury", "Mars" },
- { "Venus", "Earth" },
- { "Venus", "Mars" },
- { "Earth", "Mars" },
- { "Mars", "Jupiter" },
- { "Jupiter", "Saturn" }
- }
- commodityResaleFactor = 0.72
- shipResaleFactor = 0.63
|