diff --git a/images/ammo/05.png b/images/ammo/05.png new file mode 100644 index 0000000..096abb4 Binary files /dev/null and b/images/ammo/05.png differ diff --git a/images/attachments/hopups/10.png b/images/attachments/hopups/10.png new file mode 100644 index 0000000..47157fa Binary files /dev/null and b/images/attachments/hopups/10.png differ diff --git a/images/attachments/hopups/11.png b/images/attachments/hopups/11.png new file mode 100644 index 0000000..ffee14e Binary files /dev/null and b/images/attachments/hopups/11.png differ diff --git a/images/bg/weapons/05.png b/images/bg/weapons/05.png new file mode 100644 index 0000000..42fb9a9 Binary files /dev/null and b/images/bg/weapons/05.png differ diff --git a/images/legends/icon/16.png b/images/legends/icon/16.png new file mode 100644 index 0000000..b4d2f60 Binary files /dev/null and b/images/legends/icon/16.png differ diff --git a/images/legends/passive/16.png b/images/legends/passive/16.png new file mode 100644 index 0000000..112c811 Binary files /dev/null and b/images/legends/passive/16.png differ diff --git a/images/legends/tactical/16.png b/images/legends/tactical/16.png new file mode 100644 index 0000000..6c6f2f3 Binary files /dev/null and b/images/legends/tactical/16.png differ diff --git a/images/legends/ultimate/16.png b/images/legends/ultimate/16.png new file mode 100644 index 0000000..42d2bf3 Binary files /dev/null and b/images/legends/ultimate/16.png differ diff --git a/images/weapons/bocek.png b/images/weapons/bocek.png new file mode 100644 index 0000000..1e64c8e Binary files /dev/null and b/images/weapons/bocek.png differ diff --git a/script.js b/script.js index 644b1a8..712802a 100644 --- a/script.js +++ b/script.js @@ -14,7 +14,8 @@ var legend_names = [ "LOBA", "RAMPART", "HORIZON", - "FUSE" + "FUSE", + "VALKYRIE" ]; var legend_descriptions = [ @@ -33,7 +34,8 @@ var legend_descriptions = [ "TRANSLOCATING THIEF", "BASE OF FIRE", "GRAVITATIONAL MANIPULATOR", - "EXPLOSIVES ENTHUSIAST" + "EXPLOSIVES ENTHUSIAST", + "WINGED AVENGER" ]; var legend_passives = [ @@ -52,7 +54,8 @@ var legend_passives = [ "EYE FOR QUALITY", "MODDED LOADER", "SPACEWALK", - "GRENADIER" + "GRENADIER", + "VTOL JETS" ]; var legend_tacticals = [ @@ -71,7 +74,8 @@ var legend_tacticals = [ "BURGLAR'S BEST FRIEND", "AMPED COVER", "GRAVITY LIFT", - "KNUCKLE CLUSTER" + "KNUCKLE CLUSTER", + "MISSILE SWARM" ]; var legend_ultimates = [ @@ -90,11 +94,12 @@ var legend_ultimates = [ "BLACK MARKET BOUTIQUE", "EMPLACED MINIGUN \"SHEILA\"", "BLACK HOLE", - "THE MOTHERLODE" + "THE MOTHERLODE", + "SKYWARD DIVE" ]; -var legend_classes = [0, 1, 2, 0, 3, 3, 1, 3, 3, 1, 0, 3, 2, 1, 3, 3]; -var legend_mods = [-1, 0, 1, 1, 1, -1, 0, -1, -1, 1, -1, -1, -1, -1, -1, -1]; +var legend_classes = [0, 1, 2, 0, 3, 3, 1, 3, 3, 1, 0, 3, 2, 1, 3, 3, 0]; +var legend_mods = [-1, 0, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]; var legend_classes_txt = ["RECON", "DEFENSE", "SUPPORT", "OFFENSE"]; var legend_mods_txt = ["FORTIFIED", "LOW PROFILE"]; @@ -111,12 +116,14 @@ var hopup_txt = [ "ANVIL RECEIVER", "HAMMER­POINT ROUNDS", "GRAFFITI MOD", - "QUICKDRAW HOLSTER" + "QUICKDRAW HOLSTER", + "SHATTER CAPS", + "DEADEYE'S TEMPO" ]; -var hopup_level = [3, 3, 4, 4, 3, 3, 4, 3, 1, 3]; +var hopup_level = [3, 3, 4, 4, 3, 3, 4, 3, 1, 3, 3, 3]; var mag_txt = ["EXTENDED LIGHT MAGAZINE", "EXTENDED HEAVY MAGAZINE", "EXTENDED SNIPER MAGAZINE", "EXTENDED ENERGY MAGAZINE"]; -var ammo_txt = ["LIGHT ROUNDS", "HEAVY ROUNDS", "SNIPER AMMO", "ENERGY AMMO", "SHOTGUN SHELLS"]; +var ammo_txt = ["LIGHT ROUNDS", "HEAVY ROUNDS", "SNIPER AMMO", "ENERGY AMMO", "SHOTGUN SHELLS", "ARROWS"]; var weapons = []; var weapon1 = -1; @@ -125,31 +132,32 @@ var weapon2 = -1; // Longest - KRABER // Tallest - RE-45 -weapons.push({name:"VOLT SMG", barrel:true, bolt:false, mag:3, optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], ammo:3, filename:"volt.png"}); -weapons.push({name:"R-301 CARBINE", barrel:true, bolt:false, mag:0, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[6], ammo:0, filename:"r301.png"}); -weapons.push({name:"VK-47 FLATLINE", barrel:false, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[6], ammo:1, filename:"flatline.png"}); -weapons.push({name:"WINGMAN", barrel:false, bolt:false, mag:1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[2, 9], ammo:1, filename:"wingman.png"}); -weapons.push({name:"M600 SPITFIRE", barrel:true, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], ammo:1, filename:"spitfire.png"}); -weapons.push({name:"L-STAR EMG", barrel:false, bolt:false, mag:-1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], ammo:3, filename:"lstar.png"}); -weapons.push({name:"HAVOC RIFLE", barrel:false, bolt:false, mag:3, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[3], ammo:3, filename:"havoc.png"}); -weapons.push({name:"ALTERNATOR SMG", barrel:true, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], ammo:0, filename:"alternator.png"}); -weapons.push({name:"DEVOTION LMG", barrel:true, bolt:false, mag:3, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[3], ammo:3, filename:"devotion.png"}); -weapons.push({name:"RE-45 AUTO", barrel:true, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[9], ammo:0, filename:"re45.png"}); -weapons.push({name:"R-99 SMG", barrel:true, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], ammo:0, filename:"r99.png"}); -// weapons.push({name:"PROWLER BURST PDW", barrel:false, bolt:false, mag:1, optic:[], stock_standard:true, stock_sniper:false, hopup:[], ammo:2, filename:"prowler.png"}); -weapons.push({name:"HEMLOK BURST AR", barrel:true, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], ammo:1, filename:"hemlok.png"}); -weapons.push({name:"30-30 REPEATER", barrel:false, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], ammo:1, filename:"3030.png"}); -weapons.push({name:"G7 SCOUT", barrel:true, bolt:false, mag:0, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], ammo:0, filename:"g7.png"}); -//weapons.push({name:"PEACEKEEPER", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], ammo:4, filename:"peacekeeper.png"}); -weapons.push({name:"EVA-8 AUTO", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], ammo:4, filename:"eva8.png"}); -weapons.push({name:"MASTIFF SHOTGUN", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], ammo:4, filename:"mastiff.png"}); -weapons.push({name:"TRIPLE TAKE", barrel:false, bolt:false, mag:2, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[], ammo:2, filename:"tripletake.png"}); -weapons.push({name:"LONGBOW DMR", barrel:true, bolt:false, mag:2, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[2], ammo:2, filename:"longbow.png"}); -weapons.push({name:"SENTINEL", barrel:false, bolt:false, mag:2, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[], ammo:2, filename:"sentinel.png"}); -weapons.push({name:"CHARGE RIFLE", barrel:false, bolt:false, mag:-1, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[], ammo:2, filename:"chargerifle.png"}); -weapons.push({name:"P2020", barrel:false, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[7], ammo:0, filename:"p2020.png"}); -weapons.push({name:"MOZAMBIQUE SHOTGUN", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[7], ammo:4, filename:"mozambique.png"}); -//weapons.push({name:"KRABER .50-CAL SNIPER", barrel:false, bolt:true, mag:-1, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:false, hopup:[], ammo:2, filename:"kraber.png"}); +weapons.push({name:"VOLT SMG", barrel:true, bolt:false, mag:3, optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:3, filename:"volt.png"}); +weapons.push({name:"R-301 CARBINE", barrel:true, bolt:false, mag:0, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[6], multi_hopup:false, ammo:0, filename:"r301.png"}); +weapons.push({name:"VK-47 FLATLINE", barrel:false, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[6], multi_hopup:false, ammo:1, filename:"flatline.png"}); +weapons.push({name:"HAVOC RIFLE", barrel:false, bolt:false, mag:3, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[3], multi_hopup:false, ammo:3, filename:"havoc.png"}); +weapons.push({name:"M600 SPITFIRE", barrel:true, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:1, filename:"spitfire.png"}); +weapons.push({name:"L-STAR EMG", barrel:false, bolt:false, mag:-1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:3, filename:"lstar.png"}); +// weapons.push({name:"PROWLER BURST PDW", barrel:false, bolt:false, mag:1, optic:[], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:2, filename:"prowler.png"}); +weapons.push({name:"ALTERNATOR SMG", barrel:true, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:0, filename:"alternator.png"}); +weapons.push({name:"DEVOTION LMG", barrel:true, bolt:false, mag:3, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[3], multi_hopup:false, ammo:3, filename:"devotion.png"}); +weapons.push({name:"BOCEK COMPOUND BOW", barrel:false, bolt:false, mag:-1, optic:[1, 2, 3, 4, 5], stock_standard:false, stock_sniper:false, hopup:[10, 11], multi_hopup:true, ammo:5, filename:"bocek.png"}); +//weapons.push({name:"TRIPLE TAKE", barrel:false, bolt:false, mag:3, optic:[1, 2, 3, 4, 5, 6], stock_standard:false, stock_sniper:true, hopup:[], multi_hopup:false, ammo:3, filename:"tripletake.png"}); +weapons.push({name:"30-30 REPEATER", barrel:false, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[10], multi_hopup:false, ammo:1, filename:"3030.png"}); +weapons.push({name:"G7 SCOUT", barrel:true, bolt:false, mag:0, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:0, filename:"g7.png"}); +weapons.push({name:"WINGMAN", barrel:false, bolt:false, mag:1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[9], multi_hopup:false, ammo:1, filename:"wingman.png"}); +weapons.push({name:"HEMLOK BURST AR", barrel:true, bolt:false, mag:1, optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:1, filename:"hemlok.png"}); +weapons.push({name:"RE-45 AUTO", barrel:true, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[9], multi_hopup:false, ammo:0, filename:"re45.png"}); +weapons.push({name:"R-99 SMG", barrel:true, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:0, filename:"r99.png"}); +weapons.push({name:"LONGBOW DMR", barrel:true, bolt:false, mag:2, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[], multi_hopup:false, ammo:2, filename:"longbow.png"}); +weapons.push({name:"SENTINEL", barrel:false, bolt:false, mag:2, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[11], multi_hopup:false, ammo:2, filename:"sentinel.png"}); +weapons.push({name:"CHARGE RIFLE", barrel:false, bolt:false, mag:-1, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[], multi_hopup:false, ammo:2, filename:"chargerifle.png"}); +weapons.push({name:"PEACEKEEPER", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], multi_hopup:false, ammo:4, filename:"peacekeeper.png"}); +weapons.push({name:"EVA-8 AUTO", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], multi_hopup:false, ammo:4, filename:"eva8.png"}); +weapons.push({name:"MASTIFF SHOTGUN", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], multi_hopup:false, ammo:4, filename:"mastiff.png"}); +weapons.push({name:"P2020", barrel:false, bolt:false, mag:0, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], multi_hopup:false, ammo:0, filename:"p2020.png"}); +weapons.push({name:"MOZAMBIQUE SHOTGUN", barrel:false, bolt:true, mag:-1, optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], multi_hopup:false, ammo:4, filename:"mozambique.png"}); +//weapons.push({name:"KRABER .50-CAL SNIPER", barrel:false, bolt:true, mag:-1, optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:false, hopup:[], multi_hopup:false, ammo:2, filename:"kraber.png"}); function zeroPad(nr,base) { @@ -367,8 +375,27 @@ function randomize_attachments_single(weapon) result.push(""); } } - - if (weapon.hopup.length != 0) + + if (weapon.multi_hopup) + { + for (var i = 0; i < weapon.hopup.length; ++i) + { + pick = Math.floor(Math.random() * 2); + if (pick == 0) + { + result.push(hopup_level[weapon.hopup[i]]); + result.push("images/attachments/hopups/" + zeroPad(weapon.hopup[i], 10) + ".png"); + result.push(hopup_txt[weapon.hopup[i]]); + } + else + { + result.push(0); + result.push("images/attachments/hopups/" + zeroPad(weapon.hopup[i], 10) + ".png"); + result.push(""); + } + } + } + else { if (weapon.hopup.length != 0) {