From 5126638d46398579c26d3c7bd908fe17b8508b13 Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Fri, 19 Feb 2021 18:30:53 +0100 Subject: battery calc and unstable levels --- build/army/army.txt | Bin 21528 -> 0 bytes build/army/army2.txt | Bin 21528 -> 0 bytes build/content/armor.txt | 189 +++++++-- build/content/augments.txt | 264 ++++++++++--- build/content/autolevel.py | 28 ++ build/content/batteries.txt | 113 +++++- build/content/brains.txt | 50 ++- build/content/chassis.txt | 731 ++++++++++++++++++++++++++++------ build/content/gf.bmp | Bin 37978 -> 37978 bytes build/content/gfsmall.bmp | Bin 0 -> 18826 bytes build/content/weapons.txt | 934 ++++++++++++++++++++++++++++++++++++++++---- build/test.exe | Bin 746614 -> 751250 bytes 12 files changed, 2027 insertions(+), 282 deletions(-) delete mode 100644 build/army/army.txt delete mode 100644 build/army/army2.txt create mode 100644 build/content/autolevel.py create mode 100644 build/content/gfsmall.bmp (limited to 'build') diff --git a/build/army/army.txt b/build/army/army.txt deleted file mode 100644 index ae1c3b5..0000000 Binary files a/build/army/army.txt and /dev/null differ diff --git a/build/army/army2.txt b/build/army/army2.txt deleted file mode 100644 index ae1c3b5..0000000 Binary files a/build/army/army2.txt and /dev/null differ diff --git a/build/content/armor.txt b/build/content/armor.txt index f418779..5182a0c 100644 --- a/build/content/armor.txt +++ b/build/content/armor.txt @@ -1,57 +1,200 @@ [ { "name": "metal plating", - "weight": "50", - "pierce": "5", "spread": "8" + "weight": [ + 50.0, + 50.0, + 50.0 + ], + "pierce": [ + 5.0, + 5.0, + 5.0 + ], + "spread": [ + 8.0, + 8.0, + 8.0 + ] }, { "name": "heavy metal plating", - "weight": "80", - "pierce": "7", "spread": "10", "impact": "5" + "weight": [ + 80.0, + 80.0, + 80.0 + ], + "pierce": [ + 7.0, + 7.0, + 7.0 + ], + "spread": [ + 10.0, + 10.0, + 10.0 + ], + "impact": [ + 5.0, + 5.0, + 5.0 + ] }, { "name": "reflective plating", - "weight": "40", - "laser": "10" + "weight": [ + 40.0, + 40.0, + 40.0 + ], + "laser": [ + 10.0, + 10.0, + 10.0 + ] }, { "name": "heat resistent plating", - "weight": "50", - "fusion": "8" + "weight": [ + 50.0, + 50.0, + 50.0 + ], + "fusion": [ + 8.0, + 8.0, + 8.0 + ] }, { "name": "padding", - "weight": "20", - "spread": "5", "impact": "8" + "weight": [ + 20.0, + 20.0, + 20.0 + ], + "spread": [ + 5.0, + 5.0, + 5.0 + ], + "impact": [ + 8.0, + 8.0, + 8.0 + ] }, { "name": "reactive armor", - "weight": "75", - "explosive": "12" + "weight": [ + 75.0, + 75.0, + 75.0 + ], + "explosive": [ + 12.0, + 12.0, + 12.0 + ] }, { "name": "energy shields", - "weight": "25", - "pierce": "3", "spread": "3", "fusion": "3", "explosive": "3", "laser": "3" + "weight": [ + 25.0, + 25.0, + 25.0 + ], + "pierce": [ + 3.0, + 3.0, + 3.0 + ], + "spread": [ + 3.0, + 3.0, + 3.0 + ], + "fusion": [ + 3.0, + 3.0, + 3.0 + ], + "explosive": [ + 3.0, + 3.0, + 3.0 + ], + "laser": [ + 3.0, + 3.0, + 3.0 + ] }, { "name": "composite armor", - "weight": "30", - "pierce": "6", "spread": "4", "impact": "3" + "weight": [ + 30.0, + 30.0, + 30.0 + ], + "pierce": [ + 6.0, + 6.0, + 6.0 + ], + "spread": [ + 4.0, + 4.0, + 4.0 + ], + "impact": [ + 3.0, + 3.0, + 3.0 + ] }, { "name": "plastic armor", - "weight": "10", - "pierce": "4" + "weight": [ + 10.0, + 10.0, + 10.0 + ], + "pierce": [ + 4.0, + 4.0, + 4.0 + ] }, { "name": "sloped steel armor", - "weight": "45", - "pierce": "10", "spread": "8" + "weight": [ + 45.0, + 45.0, + 45.0 + ], + "pierce": [ + 10.0, + 10.0, + 10.0 + ], + "spread": [ + 8.0, + 8.0, + 8.0 + ] }, { "name": "charged armor", - "weight": "100", - "explosive": "25" - }, + "weight": [ + 100.0, + 100.0, + 100.0 + ], + "explosive": [ + 25.0, + 25.0, + 25.0 + ] + } ] \ No newline at end of file diff --git a/build/content/augments.txt b/build/content/augments.txt index c98e1d1..6582a7e 100644 --- a/build/content/augments.txt +++ b/build/content/augments.txt @@ -1,97 +1,273 @@ [ { "name": "charged ammo", - "weight": "10", - "damage_emp": "5" + "weight": [ + 10.0, + 10.0, + 10.0 + ], + "damage_emp": [ + 5.0, + 5.0, + 5.0 + ] }, { "name": "fusion ammo", - "weight": "10", - "damage_fusion": "4" + "weight": [ + 10.0, + 10.0, + 10.0 + ], + "damage_fusion": [ + 4.0, + 4.0, + 4.0 + ] }, { "name": "explosive ammo", - "weight": "30", - "armor_explosive": "8" + "weight": [ + 30.0, + 30.0, + 30.0 + ], + "armor_explosive": [ + 8.0, + 8.0, + 8.0 + ] }, { "name": "radiator", - "weight": "10", - "armor_fusion": "2" + "weight": [ + 10.0, + 10.0, + 10.0 + ], + "armor_fusion": [ + 2.0, + 2.0, + 2.0 + ] }, { "name": "priority module", - "weight": "0" + "weight": [ + 0.0, + 0.0, + 0.0 + ] }, { "name": "communication array", - "weight": "50", - "armor_pierce": "1", - "armor_impact": "1", - "armor_fusion": "1", - "aoe": "2" + "weight": [ + 50.0, + 50.0, + 50.0 + ], + "armor_pierce": [ + 1.0, + 1.0, + 1.0 + ], + "armor_impact": [ + 1.0, + 1.0, + 1.0 + ], + "armor_fusion": [ + 1.0, + 1.0, + 1.0 + ], + "aoe": [ + 2.0, + 2.0, + 2.0 + ] }, { "name": "long range targeting", - "weight": "0", - "add_range": "1" + "weight": [ + 0.0, + 0.0, + 0.0 + ], + "add_range": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "long range targeting", - "weight": "0", - "range": "1" + "weight": [ + 0.0, + 0.0, + 0.0 + ], + "range": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "fast target acquisition", - "weight": "5", - "add_cooldown": "-0.1" + "weight": [ + 5.0, + 5.0, + 5.0 + ], + "add_cooldown": [ + -0.1, + -0.1, + -0.1 + ] }, { "name": "overcharger", - "weight": "10", - "damage_laser": "8", - "recharge": "-5" + "weight": [ + 10.0, + 10.0, + 10.0 + ], + "damage_laser": [ + 8.0, + 8.0, + 8.0 + ], + "recharge": [ + -5.0, + -5.0, + -5.0 + ] }, { "name": "focus lens", - "weight": "3", - "damage_laser": "3" + "weight": [ + 3.0, + 3.0, + 3.0 + ], + "damage_laser": [ + 3.0, + 3.0, + 3.0 + ] }, { "name": "amplifier", - "weight": "30", - "damage_laser": "3", - "damage_fusion": "5" + "weight": [ + 30.0, + 30.0, + 30.0 + ], + "damage_laser": [ + 3.0, + 3.0, + 3.0 + ], + "damage_fusion": [ + 5.0, + 5.0, + 5.0 + ] }, { "name": "shrapnel", - "weight": "5", - "damage_explosive": "5" + "weight": [ + 5.0, + 5.0, + 5.0 + ], + "damage_explosive": [ + 5.0, + 5.0, + 5.0 + ] }, { "name": "reloader", - "weight": "40", - "add_cooldown": "-0.1" + "weight": [ + 40.0, + 40.0, + 40.0 + ], + "add_cooldown": [ + -0.1, + -0.1, + -0.1 + ] }, { "name": "anti jamming device", - "weight": "2", - "armor_emp": "5" + "weight": [ + 2.0, + 2.0, + 2.0 + ], + "armor_emp": [ + 5.0, + 5.0, + 5.0 + ] }, { "name": "weight stripping", - "weight": "-10", - "add_hp": "-10" + "weight": [ + -10.0, + -10.0, + -10.0 + ], + "add_hp": [ + -10.0, + -10.0, + -10.0 + ] }, { "name": "barebone weapon setup", - "weight": "-30", - "damage_pierce": "-25", - "damage_laser": "-25", - "damage_impact": "-25", - "damage_fusion": "-25", - "damage_explosive": "-25", - "damage_emp": "-25", - "damage_spread": "-25" + "weight": [ + -30.0, + -30.0, + -30.0 + ], + "damage_pierce": [ + -25.0, + -25.0, + -25.0 + ], + "damage_laser": [ + -25.0, + -25.0, + -25.0 + ], + "damage_impact": [ + -25.0, + -25.0, + -25.0 + ], + "damage_fusion": [ + -25.0, + -25.0, + -25.0 + ], + "damage_explosive": [ + -25.0, + -25.0, + -25.0 + ], + "damage_emp": [ + -25.0, + -25.0, + -25.0 + ], + "damage_spread": [ + -25.0, + -25.0, + -25.0 + ] } ] \ No newline at end of file diff --git a/build/content/autolevel.py b/build/content/autolevel.py new file mode 100644 index 0000000..eac6e09 --- /dev/null +++ b/build/content/autolevel.py @@ -0,0 +1,28 @@ +import json + +def vectorize (obj, forbidlist): + for c in obj: + for key in c: + if not(key in forbidlist): + val = c[key] + try: val = int(val); + except: pass + try: val = float(val); + except: pass + c[key] = [val for i in range(3)] + return obj + + +def comp(filename, forbidlist): + with open(filename+".txt", "r") as f: obj = json.loads(f.read()) + obj = vectorize(obj, forbidlist) + with open(filename+".txt", "w") as f: + f.write(json.dumps(obj, indent=4)) + +if __name__ == "__main__": + #comp("weapons", ["name", "damage_type"]) + #comp("augments", ["name"]) + #comp("batteries", ["name"]) + #comp("armor", ["name"]) + #comp("chassis", ["name"]) + comp("brains", ["name"]) diff --git a/build/content/batteries.txt b/build/content/batteries.txt index fe5da27..18ae48e 100644 --- a/build/content/batteries.txt +++ b/build/content/batteries.txt @@ -1,34 +1,131 @@ [ { "name": "small alkaline pack", - "weight": "0", "capacity": "50" + "weight": [ + 0.0, + 0.0, + 0.0 + ], + "capacity": [ + 50.0, + 50.0, + 50.0 + ] }, { "name": "big alkaline pack", - "weight": "2", "capacity": "200" + "weight": [ + 2.0, + 2.0, + 2.0 + ], + "capacity": [ + 200.0, + 200.0, + 200.0 + ] }, { "name": "small lithium pack", - "weight": "5", "capacity": "150", "recharge": "1" + "weight": [ + 5.0, + 5.0, + 5.0 + ], + "capacity": [ + 150.0, + 150.0, + 150.0 + ], + "recharge": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "big lithium pack", - "weight": "15", "capacity": "500", "recharge": "1" + "weight": [ + 15.0, + 15.0, + 15.0 + ], + "capacity": [ + 500.0, + 500.0, + 500.0 + ], + "recharge": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "lead battery", - "weight": "20", "capacity": "800", "recharge": "1" + "weight": [ + 20.0, + 20.0, + 20.0 + ], + "capacity": [ + 800.0, + 800.0, + 800.0 + ], + "recharge": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "small molten salt battery", - "weight": "40", "capacity": "1500", "recharge": "1" + "weight": [ + 40.0, + 40.0, + 40.0 + ], + "capacity": [ + 1500.0, + 1500.0, + 1500.0 + ], + "recharge": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "big molten salt battery", - "weight": "70", "capacity": "2000", "recharge": "1" + "weight": [ + 70.0, + 70.0, + 70.0 + ], + "capacity": [ + 2000.0, + 2000.0, + 2000.0 + ], + "recharge": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "atomic battery", - "weight": "150", "capacity": "10000" + "weight": [ + 150.0, + 150.0, + 150.0 + ], + "capacity": [ + 10000.0, + 10000.0, + 10000.0 + ] } ] \ No newline at end of file diff --git a/build/content/brains.txt b/build/content/brains.txt index c9bb4b5..87d8d10 100644 --- a/build/content/brains.txt +++ b/build/content/brains.txt @@ -1,20 +1,50 @@ [ { - "name": "search and destroy" + "name": "search and destroy", + "upkeep": [ + 1.0, + 1.0, + 1.0 + ] }, - { - "name": "follower" + { + "name": "follower", + "upkeep": [ + 1.0, + 1.0, + 1.0 + ] }, - { - "name": "defensive" + { + "name": "defensive", + "upkeep": [ + 1.0, + 1.0, + 1.0 + ] }, - { - "name": "kamikaze" + { + "name": "kamikaze", + "upkeep": [ + 1.0, + 1.0, + 1.0 + ] }, - { - "name": "run and gun" + { + "name": "run and gun", + "upkeep": [ + 1.0, + 1.0, + 1.0 + ] }, { - "name": "flank" + "name": "flank", + "upkeep": [ + 1.0, + 1.0, + 1.0 + ] } ] \ No newline at end of file diff --git a/build/content/chassis.txt b/build/content/chassis.txt index e4643c2..5d8db88 100644 --- a/build/content/chassis.txt +++ b/build/content/chassis.txt @@ -1,180 +1,669 @@ [ { "name": "light two legged bot", - "slot_weapon": "1", - "slot_armor": "0", - "slot_aug": "1", - "weight_max": "20", - "hp": "100", - "speed": "1.5" + "slot_weapon": [ + 1.0, + 1.0, + 1.0 + ], + "slot_armor": [ + 0.0, + 0.0, + 0.0 + ], + "slot_aug": [ + 1.0, + 1.0, + 1.0 + ], + "weight_max": [ + 20.0, + 20.0, + 20.0 + ], + "hp": [ + 100.0, + 100.0, + 100.0 + ], + "speed": [ + 1.5, + 1.5, + 1.5 + ], + "upkeep": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "heavy two legged bot", - "slot_weapon": "1", - "slot_armor": "1", - "slot_aug": "3", - "weight_max": "45", - "hp": "350", - "speed": "1" + "slot_weapon": [ + 1.0, + 1.0, + 1.0 + ], + "slot_armor": [ + 1.0, + 1.0, + 1.0 + ], + "slot_aug": [ + 3.0, + 3.0, + 3.0 + ], + "weight_max": [ + 45.0, + 45.0, + 45.0 + ], + "hp": [ + 350.0, + 350.0, + 350.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "light four legged bot", - "slot_weapon": "2", - "slot_armor": "1", - "slot_aug": "2", - "weight_max": "50", - "hp": "400", - "speed": "1" + "slot_weapon": [ + 2.0, + 2.0, + 2.0 + ], + "slot_armor": [ + 1.0, + 1.0, + 1.0 + ], + "slot_aug": [ + 2.0, + 2.0, + 2.0 + ], + "weight_max": [ + 50.0, + 50.0, + 50.0 + ], + "hp": [ + 400.0, + 400.0, + 400.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "heavy four legged bot", - "slot_weapon": "2", - "slot_armor": "2", - "slot_aug": "5", - "weight_max": "150", - "hp": "1200", - "speed": "0.67" + "slot_weapon": [ + 2.0, + 2.0, + 2.0 + ], + "slot_armor": [ + 2.0, + 2.0, + 2.0 + ], + "slot_aug": [ + 5.0, + 5.0, + 5.0 + ], + "weight_max": [ + 150.0, + 150.0, + 150.0 + ], + "hp": [ + 1200.0, + 1200.0, + 1200.0 + ], + "speed": [ + 0.67, + 0.67, + 0.67 + ] }, { "name": "light six legged bot", - "slot_weapon": "2", - "slot_armor": "2", - "slot_aug": "3", - "weight_max": "210", - "hp": "640", - "speed": "1" + "slot_weapon": [ + 2.0, + 2.0, + 2.0 + ], + "slot_armor": [ + 2.0, + 2.0, + 2.0 + ], + "slot_aug": [ + 3.0, + 3.0, + 3.0 + ], + "weight_max": [ + 210.0, + 210.0, + 210.0 + ], + "hp": [ + 640.0, + 640.0, + 640.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "heavy six legged bot", - "slot_weapon": "2", - "slot_armor": "4", - "slot_aug": "6", - "weight_max": "300", - "hp": "1500", - "speed": "1" + "slot_weapon": [ + 2.0, + 2.0, + 2.0 + ], + "slot_armor": [ + 4.0, + 4.0, + 4.0 + ], + "slot_aug": [ + 6.0, + 6.0, + 6.0 + ], + "weight_max": [ + 300.0, + 300.0, + 300.0 + ], + "hp": [ + 1500.0, + 1500.0, + 1500.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "light buggy", - "slot_weapon": "1", - "slot_armor": "1", - "slot_aug": "1", - "weight_max": "50", - "hp": "200", - "speed": "1" + "slot_weapon": [ + 1.0, + 1.0, + 1.0 + ], + "slot_armor": [ + 1.0, + 1.0, + 1.0 + ], + "slot_aug": [ + 1.0, + 1.0, + 1.0 + ], + "weight_max": [ + 50.0, + 50.0, + 50.0 + ], + "hp": [ + 200.0, + 200.0, + 200.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "buggy", - "slot_weapon": "2", - "slot_armor": "2", - "slot_aug": "2", - "weight_max": "150", - "hp": "400", - "speed": "1" + "slot_weapon": [ + 2.0, + 2.0, + 2.0 + ], + "slot_armor": [ + 2.0, + 2.0, + 2.0 + ], + "slot_aug": [ + 2.0, + 2.0, + 2.0 + ], + "weight_max": [ + 150.0, + 150.0, + 150.0 + ], + "hp": [ + 400.0, + 400.0, + 400.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "light wheeled vehicle", - "slot_weapon": "1", - "slot_armor": "0", - "slot_aug": "2", - "weight_max": "60", - "hp": "320", - "speed": "1", - "recharge": "0.3" + "slot_weapon": [ + 1.0, + 1.0, + 1.0 + ], + "slot_armor": [ + 0.0, + 0.0, + 0.0 + ], + "slot_aug": [ + 2.0, + 2.0, + 2.0 + ], + "weight_max": [ + 60.0, + 60.0, + 60.0 + ], + "hp": [ + 320.0, + 320.0, + 320.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ], + "recharge": [ + 0.3, + 0.3, + 0.3 + ] }, { "name": "medium wheeled vehicle", - "slot_weapon": "2", - "slot_armor": "2", - "slot_aug": "3", - "weight_max": "200", - "hp": "720", - "speed": "1", - "recharge": "0.2" + "slot_weapon": [ + 2.0, + 2.0, + 2.0 + ], + "slot_armor": [ + 2.0, + 2.0, + 2.0 + ], + "slot_aug": [ + 3.0, + 3.0, + 3.0 + ], + "weight_max": [ + 200.0, + 200.0, + 200.0 + ], + "hp": [ + 720.0, + 720.0, + 720.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ], + "recharge": [ + 0.2, + 0.2, + 0.2 + ] }, { "name": "heavy wheeled vehicle", - "slot_weapon": "2", - "slot_armor": "4", - "slot_aug": "4", - "weight_max": "270", - "hp": "950", - "speed": "1", - "recharge": "0.2" + "slot_weapon": [ + 2.0, + 2.0, + 2.0 + ], + "slot_armor": [ + 4.0, + 4.0, + 4.0 + ], + "slot_aug": [ + 4.0, + 4.0, + 4.0 + ], + "weight_max": [ + 270.0, + 270.0, + 270.0 + ], + "hp": [ + 950.0, + 950.0, + 950.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ], + "recharge": [ + 0.2, + 0.2, + 0.2 + ] }, { "name": "light tank", - "slot_weapon": "1", - "slot_armor": "3", - "slot_aug": "2", - "weight_max": "300", - "hp": "700", - "speed": "1", - "recharge": "0.4" + "slot_weapon": [ + 1.0, + 1.0, + 1.0 + ], + "slot_armor": [ + 3.0, + 3.0, + 3.0 + ], + "slot_aug": [ + 2.0, + 2.0, + 2.0 + ], + "weight_max": [ + 300.0, + 300.0, + 300.0 + ], + "hp": [ + 700.0, + 700.0, + 700.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ], + "recharge": [ + 0.4, + 0.4, + 0.4 + ] }, { "name": "medium tank", - "slot_weapon": "1", - "slot_armor": "4", - "slot_aug": "4", - "weight_max": "400", - "hp": "1250", - "speed": "1", - "recharge": "0.5" + "slot_weapon": [ + 1.0, + 1.0, + 1.0 + ], + "slot_armor": [ + 4.0, + 4.0, + 4.0 + ], + "slot_aug": [ + 4.0, + 4.0, + 4.0 + ], + "weight_max": [ + 400.0, + 400.0, + 400.0 + ], + "hp": [ + 1250.0, + 1250.0, + 1250.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ], + "recharge": [ + 0.5, + 0.5, + 0.5 + ] }, { "name": "heavy tank", - "slot_weapon": "2", - "slot_armor": "5", - "slot_aug": "5", - "weight_max": "450", - "hp": "1600", - "speed": "1" + "slot_weapon": [ + 2.0, + 2.0, + 2.0 + ], + "slot_armor": [ + 5.0, + 5.0, + 5.0 + ], + "slot_aug": [ + 5.0, + 5.0, + 5.0 + ], + "weight_max": [ + 450.0, + 450.0, + 450.0 + ], + "hp": [ + 1600.0, + 1600.0, + 1600.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "super heavy tank", - "slot_weapon": "3", - "slot_armor": "6", - "slot_aug": "6", - "weight_max": "500", - "hp": "2000", - "speed": "1" + "slot_weapon": [ + 3.0, + 3.0, + 3.0 + ], + "slot_armor": [ + 6.0, + 6.0, + 6.0 + ], + "slot_aug": [ + 6.0, + 6.0, + 6.0 + ], + "weight_max": [ + 500.0, + 500.0, + 500.0 + ], + "hp": [ + 2000.0, + 2000.0, + 2000.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "hovercraft", - "slot_weapon": "2", - "slot_armor": "0", - "slot_aug": "3", - "weight_max": "40", - "hp": "300", - "speed": "1", - "recharge": "-0.2" + "slot_weapon": [ + 2.0, + 2.0, + 2.0 + ], + "slot_armor": [ + 0.0, + 0.0, + 0.0 + ], + "slot_aug": [ + 3.0, + 3.0, + 3.0 + ], + "weight_max": [ + 40.0, + 40.0, + 40.0 + ], + "hp": [ + 300.0, + 300.0, + 300.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ], + "recharge": [ + -0.2, + -0.2, + -0.2 + ] }, { "name": "jet floater", - "slot_weapon": "1", - "slot_armor": "0", - "slot_aug": "2", - "weight_max": "30", - "hp": "60", - "speed": "1" + "slot_weapon": [ + 1.0, + 1.0, + 1.0 + ], + "slot_armor": [ + 0.0, + 0.0, + 0.0 + ], + "slot_aug": [ + 2.0, + 2.0, + 2.0 + ], + "weight_max": [ + 30.0, + 30.0, + 30.0 + ], + "hp": [ + 60.0, + 60.0, + 60.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "one wheeler", - "slot_weapon": "1", - "slot_armor": "0", - "slot_aug": "4", - "weight_max": "15", - "hp": "40", - "speed": "1" + "slot_weapon": [ + 1.0, + 1.0, + 1.0 + ], + "slot_armor": [ + 0.0, + 0.0, + 0.0 + ], + "slot_aug": [ + 4.0, + 4.0, + 4.0 + ], + "weight_max": [ + 15.0, + 15.0, + 15.0 + ], + "hp": [ + 40.0, + 40.0, + 40.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "armored crawler", - "slot_weapon": "1", - "slot_armor": "4", - "slot_aug": "2", - "weight_max": "200", - "hp": "750", - "speed": "1", - "recharge": "-0.4" + "slot_weapon": [ + 1.0, + 1.0, + 1.0 + ], + "slot_armor": [ + 4.0, + 4.0, + 4.0 + ], + "slot_aug": [ + 2.0, + 2.0, + 2.0 + ], + "weight_max": [ + 200.0, + 200.0, + 200.0 + ], + "hp": [ + 750.0, + 750.0, + 750.0 + ], + "speed": [ + 1.0, + 1.0, + 1.0 + ], + "upkeep": [ + 0.4, + 0.4, + 0.4 + ] } ] \ No newline at end of file diff --git a/build/content/gf.bmp b/build/content/gf.bmp index 85cd3e2..a3750be 100644 Binary files a/build/content/gf.bmp and b/build/content/gf.bmp differ diff --git a/build/content/gfsmall.bmp b/build/content/gfsmall.bmp new file mode 100644 index 0000000..211c925 Binary files /dev/null and b/build/content/gfsmall.bmp differ diff --git a/build/content/weapons.txt b/build/content/weapons.txt index f4b3b2b..8d20804 100644 --- a/build/content/weapons.txt +++ b/build/content/weapons.txt @@ -1,192 +1,974 @@ [ { "name": "smg", - "damage_type": "pierce", "weight": "10", "cooldown": "1", - "damage": "10", "range": "4" + "damage_type": "pierce", + "weight": [ + 10.0, + 10.0, + 10.0 + ], + "cooldown": [ + 1.0, + 1.0, + 1.0 + ], + "damage": [ + 10.0, + 10.0, + 10.0 + ], + "range": [ + 4.0, + 4.0, + 4.0 + ] }, { "name": "machinegun", - "damage_type": "pierce", "weight": "25", "cooldown": "1", - "damage": "15", "range": "5" + "damage_type": "pierce", + "weight": [ + 25.0, + 25.0, + 25.0 + ], + "cooldown": [ + 1.0, + 1.0, + 1.0 + ], + "damage": [ + 15.0, + 15.0, + 15.0 + ], + "range": [ + 5.0, + 5.0, + 5.0 + ] }, { "name": "heavy machinegun", - "damage_type": "pierce", "weight": "40", "cooldown": "1", - "damage": "20", "range": "5" + "damage_type": "pierce", + "weight": [ + 40.0, + 40.0, + 40.0 + ], + "cooldown": [ + 1.0, + 1.0, + 1.0 + ], + "damage": [ + 20.0, + 20.0, + 20.0 + ], + "range": [ + 5.0, + 5.0, + 5.0 + ] }, { "name": "semi autocannon", - "damage_type": "pierce", "weight": "70", "cooldown": "2", - "damage": "32", "range": "6" + "damage_type": "pierce", + "weight": [ + 70.0, + 70.0, + 70.0 + ], + "cooldown": [ + 2.0, + 2.0, + 2.0 + ], + "damage": [ + 32.0, + 32.0, + 32.0 + ], + "range": [ + 6.0, + 6.0, + 6.0 + ] }, { "name": "autocannon", - "damage_type": "pierce", "weight": "100", "cooldown": "1", - "damage": "40", "range": "6" + "damage_type": "pierce", + "weight": [ + 100.0, + 100.0, + 100.0 + ], + "cooldown": [ + 1.0, + 1.0, + 1.0 + ], + "damage": [ + 40.0, + 40.0, + 40.0 + ], + "range": [ + 6.0, + 6.0, + 6.0 + ] }, { "name": "high velocity cannon", - "damage_type": "pierce", "weight": "120", "cooldown": "4", - "damage": "250", "range": "7" + "damage_type": "pierce", + "weight": [ + 120.0, + 120.0, + 120.0 + ], + "cooldown": [ + 4.0, + 4.0, + 4.0 + ], + "damage": [ + 250.0, + 250.0, + 250.0 + ], + "range": [ + 7.0, + 7.0, + 7.0 + ] }, { "name": "scrap gun", - "damage_type": "spread", "weight": "5", "cooldown": "2", - "damage": "8", "range": "3" + "damage_type": "spread", + "weight": [ + 5.0, + 5.0, + 5.0 + ], + "cooldown": [ + 2.0, + 2.0, + 2.0 + ], + "damage": [ + 8.0, + 8.0, + 8.0 + ], + "range": [ + 3.0, + 3.0, + 3.0 + ] }, { "name": "burst cannon", - "damage_type": "spread", "weight": "15", "cooldown": "2", - "damage": "25", "range": "4" + "damage_type": "spread", + "weight": [ + 15.0, + 15.0, + 15.0 + ], + "cooldown": [ + 2.0, + 2.0, + 2.0 + ], + "damage": [ + 25.0, + 25.0, + 25.0 + ], + "range": [ + 4.0, + 4.0, + 4.0 + ] }, { "name": "heavy burst cannon", - "damage_type": "spread", "weight": "30", "cooldown": "2", - "damage": "40", "range": "5" + "damage_type": "spread", + "weight": [ + 30.0, + 30.0, + 30.0 + ], + "cooldown": [ + 2.0, + 2.0, + 2.0 + ], + "damage": [ + 40.0, + 40.0, + 40.0 + ], + "range": [ + 5.0, + 5.0, + 5.0 + ] }, { "name": "maul", - "damage_type": "impact", "weight": "200", "cooldown": "3", - "damage": "400", "range": "1", "knockback": "2" + "damage_type": "impact", + "weight": [ + 200.0, + 200.0, + 200.0 + ], + "cooldown": [ + 3.0, + 3.0, + 3.0 + ], + "damage": [ + 400.0, + 400.0, + 400.0 + ], + "range": [ + 1.0, + 1.0, + 1.0 + ], + "knockback": [ + 2.0, + 2.0, + 2.0 + ] }, { "name": "slam", - "damage_type": "impact", "weight": "0", "cooldown": "1", - "damage": "6", "range": "1" + "damage_type": "impact", + "weight": [ + 0.0, + 0.0, + 0.0 + ], + "cooldown": [ + 1.0, + 1.0, + 1.0 + ], + "damage": [ + 6.0, + 6.0, + 6.0 + ], + "range": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "warhammer", - "damage_type": "impact", "weight": "40", "cooldown": "1", - "damage": "60", "range": "1", "knockback": "1" + "damage_type": "impact", + "weight": [ + 40.0, + 40.0, + 40.0 + ], + "cooldown": [ + 1.0, + 1.0, + 1.0 + ], + "damage": [ + 60.0, + 60.0, + 60.0 + ], + "range": [ + 1.0, + 1.0, + 1.0 + ], + "knockback": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "rocket", - "damage_type": "explosive", "weight": "60", "cooldown": "3", - "damage": "100", "range": "8" + "damage_type": "explosive", + "weight": [ + 60.0, + 60.0, + 60.0 + ], + "cooldown": [ + 3.0, + 3.0, + 3.0 + ], + "damage": [ + 100.0, + 100.0, + 100.0 + ], + "range": [ + 8.0, + 8.0, + 8.0 + ] }, { "name": "rocket swarm", - "damage_type": "explosive", "weight": "120", "cooldown": "3", - "damage": "60", "range": "7", "aoe": "2" + "damage_type": "explosive", + "weight": [ + 120.0, + 120.0, + 120.0 + ], + "cooldown": [ + 3.0, + 3.0, + 3.0 + ], + "damage": [ + 60.0, + 60.0, + 60.0 + ], + "range": [ + 7.0, + 7.0, + 7.0 + ], + "aoe": [ + 2.0, + 2.0, + 2.0 + ] }, { "name": "tactical rocket", - "damage_type": "explosive", "weight": "160", "cooldown": "1", - "damage": "100", "range": "8", "aoe": "1" + "damage_type": "explosive", + "weight": [ + 160.0, + 160.0, + 160.0 + ], + "cooldown": [ + 1.0, + 1.0, + 1.0 + ], + "damage": [ + 100.0, + 100.0, + 100.0 + ], + "range": [ + 8.0, + 8.0, + 8.0 + ], + "aoe": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "nuclear rocket", - "damage_type": "explosive", "weight": "200", "cooldown": "6", - "damage": "300", "range": "9", "aoe": "3" + "damage_type": "explosive", + "weight": [ + 200.0, + 200.0, + 200.0 + ], + "cooldown": [ + 6.0, + 6.0, + 6.0 + ], + "damage": [ + 300.0, + 300.0, + 300.0 + ], + "range": [ + 9.0, + 9.0, + 9.0 + ], + "aoe": [ + 3.0, + 3.0, + 3.0 + ] }, { "name": "light laser", - "damage_type": "laser", "weight": "20", "cooldown": "1", - "damage": "8", "range": "5" + "damage_type": "laser", + "weight": [ + 20.0, + 20.0, + 20.0 + ], + "cooldown": [ + 1.0, + 1.0, + 1.0 + ], + "damage": [ + 8.0, + 8.0, + 8.0 + ], + "range": [ + 5.0, + 5.0, + 5.0 + ] }, { "name": "combined light laser", - "damage_type": "laser", "weight": "50", "cooldown": "1", - "damage": "20", "range": "6" + "damage_type": "laser", + "weight": [ + 50.0, + 50.0, + 50.0 + ], + "cooldown": [ + 1.0, + 1.0, + 1.0 + ], + "damage": [ + 20.0, + 20.0, + 20.0 + ], + "range": [ + 6.0, + 6.0, + 6.0 + ] }, { "name": "heavy laser", - "damage_type": "laser", "weight": "130", "cooldown": "1", - "damage": "45", "range": "6" + "damage_type": "laser", + "weight": [ + 130.0, + 130.0, + 130.0 + ], + "cooldown": [ + 1.0, + 1.0, + 1.0 + ], + "damage": [ + 45.0, + 45.0, + 45.0 + ], + "range": [ + 6.0, + 6.0, + 6.0 + ] }, { "name": "combined heavy laser", - "damage_type": "laser", "weight": "300", "cooldown": "1", - "damage": "150", "range": "7" + "damage_type": "laser", + "weight": [ + 300.0, + 300.0, + 300.0 + ], + "cooldown": [ + 1.0, + 1.0, + 1.0 + ], + "damage": [ + 150.0, + 150.0, + 150.0 + ], + "range": [ + 7.0, + 7.0, + 7.0 + ] }, { "name": "plasma cannon", - "damage_type": "fusion", "weight": "80", "cooldown": "2", - "damage": "125", "range": "5" + "damage_type": "fusion", + "weight": [ + 80.0, + 80.0, + 80.0 + ], + "cooldown": [ + 2.0, + 2.0, + 2.0 + ], + "damage": [ + 125.0, + 125.0, + 125.0 + ], + "range": [ + 5.0, + 5.0, + 5.0 + ] }, { "name": "plasma autocannon", - "damage_type": "fusion", "weight": "170", "cooldown": "1", - "damage": "110", "range": "5" + "damage_type": "fusion", + "weight": [ + 170.0, + 170.0, + 170.0 + ], + "cooldown": [ + 1.0, + 1.0, + 1.0 + ], + "damage": [ + 110.0, + 110.0, + 110.0 + ], + "range": [ + 5.0, + 5.0, + 5.0 + ] }, { "name": "plasma artillery", - "damage_type": "fusion", "weight": "200", "cooldown": "3", - "damage": "100", "range": "7", "aoe": "2" + "damage_type": "fusion", + "weight": [ + 200.0, + 200.0, + 200.0 + ], + "cooldown": [ + 3.0, + 3.0, + 3.0 + ], + "damage": [ + 100.0, + 100.0, + 100.0 + ], + "range": [ + 7.0, + 7.0, + 7.0 + ], + "aoe": [ + 2.0, + 2.0, + 2.0 + ] }, { "name": "fusion blade", - "damage_type": "fusion", "weight": "15", "cooldown": "1", - "damage": "15", "range": "1" + "damage_type": "fusion", + "weight": [ + 15.0, + 15.0, + 15.0 + ], + "cooldown": [ + 1.0, + 1.0, + 1.0 + ], + "damage": [ + 15.0, + 15.0, + 15.0 + ], + "range": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "fusion lance", - "damage_type": "fusion", "weight": "50", "cooldown": "1", - "damage": "45", "range": "2" + "damage_type": "fusion", + "weight": [ + 50.0, + 50.0, + 50.0 + ], + "cooldown": [ + 1.0, + 1.0, + 1.0 + ], + "damage": [ + 45.0, + 45.0, + 45.0 + ], + "range": [ + 2.0, + 2.0, + 2.0 + ] }, { "name": "light railgun", - "damage_type": "impact", "weight": "50", "cooldown": "2", - "damage": "90", "range": "6" + "damage_type": "impact", + "weight": [ + 50.0, + 50.0, + 50.0 + ], + "cooldown": [ + 2.0, + 2.0, + 2.0 + ], + "damage": [ + 90.0, + 90.0, + 90.0 + ], + "range": [ + 6.0, + 6.0, + 6.0 + ] }, { "name": "heavy railgun", - "damage_type": "impact", "weight": "190", "cooldown": "3", - "damage": "450", "range": "7" + "damage_type": "impact", + "weight": [ + 190.0, + 190.0, + 190.0 + ], + "cooldown": [ + 3.0, + 3.0, + 3.0 + ], + "damage": [ + 450.0, + 450.0, + 450.0 + ], + "range": [ + 7.0, + 7.0, + 7.0 + ] }, { "name": "supercharged railgun", - "damage_type": "impact", "weight": "240", "cooldown": "4", - "damage": "1000", "range": "8" + "damage_type": "impact", + "weight": [ + 240.0, + 240.0, + 240.0 + ], + "cooldown": [ + 4.0, + 4.0, + 4.0 + ], + "damage": [ + 1000.0, + 1000.0, + 1000.0 + ], + "range": [ + 8.0, + 8.0, + 8.0 + ] }, { "name": "discharge beam", - "damage_type": "emp", "weight": "40", "cooldown": "2", - "damage_battery": "3", "range": "4" + "damage_type": "emp", + "weight": [ + 40.0, + 40.0, + 40.0 + ], + "cooldown": [ + 2.0, + 2.0, + 2.0 + ], + "damage_battery": [ + 3.0, + 3.0, + 3.0 + ], + "range": [ + 4.0, + 4.0, + 4.0 + ] }, { "name": "haywire beam", - "damage_type": "emp", "weight": "50", "cooldown": "5", - "damage": "80", "damage_battery": "5", "range": "6" + "damage_type": "emp", + "weight": [ + 50.0, + 50.0, + 50.0 + ], + "cooldown": [ + 5.0, + 5.0, + 5.0 + ], + "damage": [ + 80.0, + 80.0, + 80.0 + ], + "damage_battery": [ + 5.0, + 5.0, + 5.0 + ], + "range": [ + 6.0, + 6.0, + 6.0 + ] }, { "name": "stun beam", - "damage_type": "emp", "weight": "80", "cooldown": "5", - "stun": "1", "range": "4" + "damage_type": "emp", + "weight": [ + 80.0, + 80.0, + 80.0 + ], + "cooldown": [ + 5.0, + 5.0, + 5.0 + ], + "stun": [ + 1.0, + 1.0, + 1.0 + ], + "range": [ + 4.0, + 4.0, + 4.0 + ] }, { "name": "amplified discharge impulse", - "damage_type": "emp", "weight": "150", "cooldown": "3", - "damage_battery": "10", "range": "5", "aoe": "1" + "damage_type": "emp", + "weight": [ + 150.0, + 150.0, + 150.0 + ], + "cooldown": [ + 3.0, + 3.0, + 3.0 + ], + "damage_battery": [ + 10.0, + 10.0, + 10.0 + ], + "range": [ + 5.0, + 5.0, + 5.0 + ], + "aoe": [ + 1.0, + 1.0, + 1.0 + ] }, { "name": "amplified haywire beam", - "damage_type": "emp", "weight": "120", "cooldown": "5", - "damage": "200", "damage_battery": "12", "range": "6" + "damage_type": "emp", + "weight": [ + 120.0, + 120.0, + 120.0 + ], + "cooldown": [ + 5.0, + 5.0, + 5.0 + ], + "damage": [ + 200.0, + 200.0, + 200.0 + ], + "damage_battery": [ + 12.0, + 12.0, + 12.0 + ], + "range": [ + 6.0, + 6.0, + 6.0 + ] }, { "name": "amplified stun beam", - "damage_type": "emp", "weight": "200", "cooldown": "6", - "stun": "1", "range": "4" + "damage_type": "emp", + "weight": [ + 200.0, + 200.0, + 200.0 + ], + "cooldown": [ + 6.0, + 6.0, + 6.0 + ], + "stun": [ + 1.0, + 1.0, + 1.0 + ], + "range": [ + 4.0, + 4.0, + 4.0 + ] }, { "name": "ion cannon", - "damage_type": "emp", "weight": "75", "cooldown": "2", - "reduce_fusion": "1", "reduce_laser": "1", "range": "5" + "damage_type": "emp", + "weight": [ + 75.0, + 75.0, + 75.0 + ], + "cooldown": [ + 2.0, + 2.0, + 2.0 + ], + "reduce_fusion": [ + 1.0, + 1.0, + 1.0 + ], + "reduce_laser": [ + 1.0, + 1.0, + 1.0 + ], + "range": [ + 5.0, + 5.0, + 5.0 + ] }, { "name": "heavy ion cannon", - "damage_type": "emp", "weight": "150", "cooldown": "1", - "reduce_fusion": "1", "reduce_laser": "1", "range": "6" + "damage_type": "emp", + "weight": [ + 150.0, + 150.0, + 150.0 + ], + "cooldown": [ + 1.0, + 1.0, + 1.0 + ], + "reduce_fusion": [ + 1.0, + 1.0, + 1.0 + ], + "reduce_laser": [ + 1.0, + 1.0, + 1.0 + ], + "range": [ + 6.0, + 6.0, + 6.0 + ] }, { "name": "explosive charges", - "damage_type": "explosive", "weight": "5", "cooldown": "10", - "damage": "100", "range": "0", "aoe": "2" + "damage_type": "explosive", + "weight": [ + 5.0, + 5.0, + 5.0 + ], + "cooldown": [ + 10.0, + 10.0, + 10.0 + ], + "damage": [ + 100.0, + 100.0, + 100.0 + ], + "range": [ + 0.0, + 0.0, + 0.0 + ], + "aoe": [ + 2.0, + 2.0, + 2.0 + ] }, { "name": "javelin", - "damage_type": "explosive", "weight": "60", "cooldown": "2", - "damage": "40", "range": "7" + "damage_type": "explosive", + "weight": [ + 60.0, + 60.0, + 60.0 + ], + "cooldown": [ + 2.0, + 2.0, + 2.0 + ], + "damage": [ + 40.0, + 40.0, + 40.0 + ], + "range": [ + 7.0, + 7.0, + 7.0 + ] } ] \ No newline at end of file diff --git a/build/test.exe b/build/test.exe index ebb5f5e..835c6e6 100644 Binary files a/build/test.exe and b/build/test.exe differ -- cgit v1.2.3-54-g00ecf