Compare commits

..

5 Commits

Author SHA1 Message Date
DWW
11823f8fbb Fixed Prowler not having Laser Sight 2022-08-12 20:21:52 +03:00
DWW
89ddb7e677 Fixed Alternator missing Laser Sight 2022-08-10 22:41:12 +03:00
DWW
2d9180fe85 Added Season 14 Changes 2022-08-10 22:38:19 +03:00
DWW
9a625083dd Added Newcastle. Reordered Weapons. Fixed Dual Shell Image. 2022-05-10 23:39:19 +03:00
DWW
92bf22df6d Added missing Kinetic Feeder image 2022-03-28 00:37:02 +03:00
15 changed files with 81 additions and 38 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.0 KiB

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

BIN
images/legends/icon/20.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

BIN
images/legends/icon/21.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
images/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -8,7 +8,16 @@
</head> </head>
<body> <body>
<center> <center>
<h1>APEX LEGENDS RANDOMIZER</h1> <table>
<tr>
<td>
<img src="images/logo.png" height=100em/>
</td>
<td>
<h1>APEX LEGENDS RANDOMIZER</h1>
</td>
</tr>
</table>
</center> </center>
<hr> <hr>
<!-- All Section --> <!-- All Section -->

108
script.js
View File

@ -18,7 +18,9 @@ var legend_names = [
"VALKYRIE", "VALKYRIE",
"SEER", "SEER",
"ASH", "ASH",
"MAD MAGGIE" "MAD MAGGIE",
"NEWCASTLE",
"VANTAGE"
]; ];
var legend_descriptions = [ var legend_descriptions = [
@ -41,7 +43,9 @@ var legend_descriptions = [
"WINGED AVENGER", "WINGED AVENGER",
"AMBUSH ARTIST", "AMBUSH ARTIST",
"INCISIVE INSIGATOR", "INCISIVE INSIGATOR",
"REBEL WARLORD" "REBEL WARLORD",
"HEROIC DEFENDER",
"SURVIVALIST SNIPER"
]; ];
var legend_passives = [ var legend_passives = [
@ -64,7 +68,9 @@ var legend_passives = [
"VTOL JETS", "VTOL JETS",
"FOCUS OF ATTENTION", "FOCUS OF ATTENTION",
"MARKED FOR DEATH", "MARKED FOR DEATH",
"WARLORD'S IRE" "WARLORD'S IRE",
"RETRIEVE THE WOUNDED",
"SPOTTER'S LENS"
]; ];
var legend_tacticals = [ var legend_tacticals = [
@ -87,7 +93,9 @@ var legend_tacticals = [
"MISSILE SWARM", "MISSILE SWARM",
"HEART SEEKER", "HEART SEEKER",
"ARC SNARE", "ARC SNARE",
"RIOT DRILL" "RIOT DRILL",
"MOBILE SHIELD",
"ECHO RELOCATION"
]; ];
var legend_ultimates = [ var legend_ultimates = [
@ -110,11 +118,13 @@ var legend_ultimates = [
"SKYWARD DIVE", "SKYWARD DIVE",
"EXHIBIT", "EXHIBIT",
"PHASE BREACH", "PHASE BREACH",
"WRECKING BALL" "WRECKING BALL",
"CASTLE WALL",
"SNIPER'S MARK"
]; ];
var legend_classes = [0, 1, 2, 0, 3, 3, 1, 3, 3, 1, 0, 3, 2, 1, 3, 3, 0, 0, 3, 3]; var legend_classes = [0, 1, 2, 0, 3, 3, 1, 3, 3, 1, 0, 3, 2, 1, 3, 3, 0, 0, 3, 3, 1, 0];
var legend_mods = [-1, 0, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1]; var legend_mods = [-1, 0, -1, -1, -1, -1, 0, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, -1];
var legend_classes_txt = ["RECON", "DEFENSE", "SUPPORT", "OFFENSE"]; var legend_classes_txt = ["RECON", "DEFENSE", "SUPPORT", "OFFENSE"];
var legend_mods_txt = ["FORTIFIED", "LOW PROFILE"]; var legend_mods_txt = ["FORTIFIED", "LOW PROFILE"];
@ -138,7 +148,7 @@ var hopup_txt = [
"DUAL SHELL", "DUAL SHELL",
"KINETIC FEEDER" "KINETIC FEEDER"
]; ];
var hopup_level = [3, 3, 4, 4, 3, 3, 4, 3, 1, 3, 3, 3, 4, 3, 3]; var hopup_level = [3, 3, 4, 4, 3, 3, 4, 3, 1, 3, 3, 3, 3, 3, 3];
var mag_txt = ["EXTENDED LIGHT MAGAZINE", "EXTENDED HEAVY MAGAZINE", "EXTENDED SNIPER MAGAZINE", "EXTENDED ENERGY MAGAZINE"]; 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", "ARROWS"]; var ammo_txt = ["LIGHT ROUNDS", "HEAVY ROUNDS", "SNIPER AMMO", "ENERGY AMMO", "SHOTGUN SHELLS", "ARROWS"];
@ -150,34 +160,34 @@ var weapon2 = -1;
// Longest - KRABER // Longest - KRABER
// Tallest - RE-45 // Tallest - RE-45
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:[], multi_hopup:false, ammo:1, filename:"flatline.png"}); weapons.push({name:"WINGMAN", laser:false, barrel:false, bolt:false, mag:[2], optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[2, 12], multi_hopup:false, ammo:2, filename:"wingman.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:[], multi_hopup:false, ammo:0, filename:"r301.png"}); weapons.push({name:"VOLT SMG", laser:false, 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:"C.A.R. SMG", barrel: true, bolt:false, mag:[1,0], optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:1, filename:"car.png"}); weapons.push({name:"C.A.R. SMG", laser:false, barrel: false, bolt:false, mag:[1,0], optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:1, filename:"car.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:"R-99 SMG", laser:true, barrel:false, 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:"L-STAR EMG", barrel:true, bolt:false, mag:[3], 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:"ALTERNATOR SMG", laser:true, barrel:false, 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:"RAMPAGE", 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:"rampage.png"}); weapons.push({name:"VK-47 FLATLINE", laser:false, barrel:false, bolt:false, mag:[1], optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], 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:"R-301 CARBINE", laser:false, 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:"r301.png"});
weapons.push({name:"30-30 REPEATER", barrel:false, bolt:false, mag:[1], optic:[1, 2, 3, 4, 5, 6], stock_standard:false, stock_sniper:true, hopup:[10, 13], multi_hopup:false, ammo:1, filename:"3030.png"}); weapons.push({name:"M600 SPITFIRE", laser:false, barrel:false, bolt:false, mag:[0], optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:0, filename:"spitfire.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:[14], multi_hopup:false, ammo:3, filename:"tripletake.png"}); weapons.push({name:"DEVOTION LMG", laser:false, 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:"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:"RAMPAGE", laser:false, 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:"rampage.png"});
weapons.push({name:"WINGMAN", barrel:false, bolt:false, mag:[1], optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[12], multi_hopup:false, ammo:1, filename:"wingman.png"}); weapons.push({name:"HAVOC RIFLE", laser:false, 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:"BOCEK COMPOUND BOW", barrel:false, bolt:false, mag:[], 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:"L-STAR EMG", laser:false, barrel:true, bolt:false, mag:[3], 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:"HEMLOK BURST AR", barrel:true, bolt:false, mag:[1], optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[12], multi_hopup:false, ammo:1, filename:"hemlok.png"}); weapons.push({name:"G7 SCOUT", laser:false, barrel:true, bolt:false, mag:[0], optic:[1, 2, 3, 4, 5, 6], stock_standard:false, stock_sniper:true, hopup:[5], multi_hopup:false, ammo:0, filename:"g7.png"});
weapons.push({name:"PROWLER BURST PDW", barrel:false, bolt:false, mag:[1], optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:1, filename:"prowler.png"}); weapons.push({name:"HEMLOK BURST AR", laser:false, barrel:true, bolt:false, mag:[1], optic:[1, 2, 3, 4, 5, 6], stock_standard:true, stock_sniper:false, hopup:[12], 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:[7], multi_hopup:false, ammo:0, filename:"re45.png"}); weapons.push({name:"30-30 REPEATER", laser:false, barrel:false, bolt:false, mag:[1], optic:[1, 2, 3, 4, 5, 6], stock_standard:false, stock_sniper:true, hopup:[2], multi_hopup:false, ammo:1, filename:"3030.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:"TRIPLE TAKE", laser:false, barrel:false, bolt:false, mag:[3], optic:[1, 2, 3, 4, 5, 6], stock_standard:false, stock_sniper:true, hopup:[14], multi_hopup:false, ammo:3, filename:"tripletake.png"});
weapons.push({name:"EVA-8 AUTO", barrel:false, bolt:true, mag:[], optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], multi_hopup:false, ammo:4, filename:"eva8.png"}); //weapons.push({name:"BOCEK COMPOUND BOW", laser:false, barrel:false, bolt:false, mag:[], optic:[1, 2, 3, 4, 5], stock_standard:false, stock_sniper:false, hopup:[], multi_hopup:true, ammo:5, filename:"bocek.png"});
weapons.push({name:"MASTIFF SHOTGUN", barrel:false, bolt:true, mag:[], optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[13], multi_hopup:false, ammo:4, filename:"mastiff.png"}); weapons.push({name:"PROWLER BURST PDW", laser:true, barrel:false, bolt:false, mag:[1], optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[], multi_hopup:false, ammo:1, filename:"prowler.png"});
weapons.push({name:"PEACEKEEPER", barrel:false, bolt:true, mag:[], optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[14], multi_hopup:false, ammo:4, filename:"peacekeeper.png"}); weapons.push({name:"RE-45 AUTO", laser:true, barrel:false, bolt:false, mag:[0], optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[7], multi_hopup:false, ammo:0, filename:"re45.png"});
weapons.push({name:"MOZAMBIQUE SHOTGUN", barrel:false, bolt:true, mag:[], optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[7], multi_hopup:false, ammo:4, filename:"mozambique.png"}); //weapons.push({name:"KRABER .50-CAL SNIPER", laser:false, barrel:false, bolt:true, mag:[], optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[], multi_hopup:false, ammo:2, filename:"kraber.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], multi_hopup:false, ammo:0, filename:"p2020.png"}); weapons.push({name:"LONGBOW DMR", laser:false, barrel:true, bolt:false, mag:[2], optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[2], multi_hopup:false, ammo:2, filename:"longbow.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", laser:false, barrel:false, 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:"sentinel.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", laser:false, barrel:false, bolt:false, mag:[], 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:"CHARGE RIFLE", barrel:false, bolt:false, mag:[], 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:"MASTIFF SHOTGUN", laser:false, barrel:false, bolt:true, mag:[], optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[], multi_hopup:false, ammo:4, filename:"mastiff.png"});
//weapons.push({name:"G7 SCOUT", barrel:true, bolt:false, mag:[0], optic:[1, 2, 3, 4, 5, 6], stock_standard:false, stock_sniper:true, hopup:[], multi_hopup:false, ammo:0, filename:"g7.png"}); weapons.push({name:"PEACEKEEPER", laser:false, barrel:false, bolt:true, mag:[], optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[14], multi_hopup:false, ammo:4, filename:"peacekeeper.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:"EVA-8 AUTO", laser:false, barrel:false, bolt:true, mag:[], optic:[0, 1, 2, 3, 4], stock_standard:true, stock_sniper:false, hopup:[5], multi_hopup:false, ammo:4, filename:"eva8.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:"MOZAMBIQUE SHOTGUN", laser:false, barrel:false, bolt:true, mag:[], optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[7], multi_hopup:false, ammo:4, filename:"mozambique.png"});
//weapons.push({name:"KRABER .50-CAL SNIPER", barrel:false, bolt:true, mag:[], optic:[1, 2, 3, 4, 5, 6, 7, 8 ,9], stock_standard:false, stock_sniper:true, hopup:[], multi_hopup:false, ammo:2, filename:"kraber.png"}); weapons.push({name:"P2020", laser:true, barrel:false, bolt:false, mag:[0], optic:[0, 1, 2, 3, 4], stock_standard:false, stock_sniper:false, hopup:[7], multi_hopup:false, ammo:0, filename:"p2020.png"});
function zeroPad(nr,base) function zeroPad(nr,base)
{ {
@ -222,7 +232,15 @@ function randomize_legend()
img_str = "images/legends/passive/" + zeroPad(pick, 10) + ".png"; img_str = "images/legends/passive/" + zeroPad(pick, 10) + ".png";
document.getElementById("passive_img").src = img_str; document.getElementById("passive_img").src = img_str;
img_str = "images/legends/tactical/" + zeroPad(pick, 10) + ".png"; img_str = "images/legends/tactical/" + zeroPad(pick, 10);
// Vantage Double Tactical
if (pick == 21)
{
var pick2 = Math.floor(Math.random() * 2);
img_str += "-";
img_str += pick2;
}
img_str += ".png";
document.getElementById("tactical_img").src = img_str; document.getElementById("tactical_img").src = img_str;
img_str = "images/legends/ultimate/" + zeroPad(pick, 10) + ".png"; img_str = "images/legends/ultimate/" + zeroPad(pick, 10) + ".png";
@ -290,6 +308,22 @@ function randomize_attachments_single(weapon)
var result = []; var result = [];
var pick; var pick;
// Laser
if (weapon.laser == true)
{
pick = Math.floor(Math.random() * 4);
result.push(pick);
result.push("images/attachments/laser.png");
if (pick != 0)
{
result.push("LASER SIGHT");
}
else
{
result.push("");
}
}
// Barrel // Barrel
if (weapon.barrel == true) if (weapon.barrel == true)
{ {