Skip to content

Commit

Permalink
Added 2018 sets, Clangorous Soulblaze button
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-white committed Nov 30, 2017
1 parent c0f3c32 commit a4dc1c2
Show file tree
Hide file tree
Showing 11 changed files with 10,343 additions and 21 deletions.
Binary file added image_res/784.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed image_res/favicomatic.zip
Binary file not shown.
Binary file removed image_res/nb.ico
Binary file not shown.
6 changes: 0 additions & 6 deletions image_res/nblogo_50px.png

This file was deleted.

Binary file removed image_res/nugget.png
Binary file not shown.
Binary file added image_res/wideguard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 16 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
</head>
<body>
<div class="header"><div class="wrapper">
<span class="header-logo"><a href="http://trainertower.com"><img src="image_res/trainertower.png" alt="Trainer Tower" height="50px" /></a></span><span class="nav"><a href="http://trainertower.com">Home</a> | <a href="http://trainertower.com/forums">Forums</a> | <a href="http://play.pokemonshowdown.com/vgc">Showdown</a> | <a href="http://www.trainertower.com/vgc-2017-speed-tiers/">2017 Speed Tiers</a> | <a href="https://github.com/jake-white/VGC-Damage-Calculator">GitHub Page</a> | <a href="https://lilymaniac.github.io/calc/">한국어 계산기 (Korean Version)</a> | <a href="http://trainertower.com/usage-stats">Showdown Stats</a> | <a href="http://www.trainertower.com/WCS-battle-spot-usage/">Battlespot Stats</a> | <a href="http://www.trainertower.com/survivalcalc/">Survival Calc</a></span>
<span class="header-logo"><a href="http://trainertower.com"><img src="image_res/trainertower.png" alt="Trainer Tower" height="50px" /></a></span><span class="nav"><a href="http://trainertower.com">Home</a> | <a href="http://trainertower.com/forums">Forums</a> | <a href="http://play.pokemonshowdown.com/vgc">Showdown</a> | <a href="http://www.trainertower.com/vgc-2018-speed-tiers/">2018 Speed Tiers</a> | <a href="https://github.com/jake-white/VGC-Damage-Calculator">GitHub Page</a> | <a href="https://lilymaniac.github.io/calc/">한국어 계산기 (Korean Version)</a> | <a href="http://trainertower.com/usage-stats">Showdown Stats</a> | <a href="http://www.trainertower.com/WCS-battle-spot-usage/">Battlespot Stats</a> | <a href="http://www.trainertower.com/survivalcalc/">Survival Calc</a></span>
<div style="clear:both"></div>

</div></div>
<div class="wrapper">
<div>
<span class="title-text">Pokémon Damage Calculator - VGC 2017 Edition</span>
<span class="title-text">Pokémon Damage Calculator - VGC 2018 Edition</span>
<span class="generations" title="Select the generation.">
<input class="gen btn-input" type="radio" name="gen" value="1" id="gen1" /><label class="btn btn-small btn-left" for="gen1">RBY</label>
<input class="gen btn-input" type="radio" name="gen" value="2" id="gen2" /><label class="btn btn-small btn-mid" for="gen2">GSC</label>
Expand All @@ -60,7 +60,6 @@
</script>
</div>
<p>Ultra Sun & Ultra Moon VGC calculator by Jake White (<a href="https://twitter.com/squirrelboyVGC">@squirrelboyVGC</a>). Submit bug/feature reports/requests through <a href="https://github.com/jake-white/VGC-Damage-Calculator/issues">Github</a> or <a href="http://www.trainertower.com/forums/threads/damage-calculator-bug-reports.62/">this thread</a>, not through Twitter please :)</p>
<p>USUM details are implemented according to my best knowledge! No promises ;)</p>

<!-- OLD NUGGETBRIDGE ADS -->
<!-- TRAINER TOWER ADS GO HERE :) -->
Expand Down Expand Up @@ -208,11 +207,7 @@ <h4 class="panel-title">Field
</h4>
</div>
<div class="panel-body">
<div class="gen-specific g7" style="width: 3.0em; margin: 0 auto 5px;">
<a href = "https://www.youtube.com/watch?v=pi7g9LbBv8A">
<img align = "middle" src="image_res/mimikyu.png" alt="Mimikyu da yo" height="42" width="42" >
</a>
</div>
<img id="wideguard" align = "middle" src="image_res/wideguard.png" alt="Mimikyu da yo">
<div class="gen-specific g3 g4 g5 g6 g7" style="width: 10.6em; margin: 0 auto 5px;" title="Select the battle format.">
<input class="btn-input calc-trigger" type="radio" name="format" value="Singles" id="singles" checked="checked" /><label class="btn btn-left" for="singles">Singles</label>
<input class="btn-input calc-trigger" type="radio" name="format" value="Doubles" id="doubles" /><label class="btn btn-right" for="doubles">Doubles</label>
Expand Down Expand Up @@ -334,6 +329,14 @@ <h4 class="panel-title">Field
</div>
</div>

<div class="btn-group gen-specific g7">
<div class="left" title="Has this Pokemon used Clangorous Soulblaze?">
<input class="btn-input calc-trigger" type="checkbox" id="clangL" /><label class="btn btn-xwide" for="clangL"><img src="image_res/784.png"><br>Clangorous Soulblaze</label>
</div>
<div class="right" title="Has this Pokemon used Clangorous Soulblaze?">
<input class="btn-input calc-trigger" type="checkbox" id="clangR" /><label class="btn btn-xwide" for="clangR"><img src="image_res/784.png"><br>Clangorous Soulblaze</label>
</div>
</div>

<div class="btn-group gen-specific g7">
<div class="left" title="Has this Pokemon used Extreme Evoboost?">
Expand All @@ -343,7 +346,10 @@ <h4 class="panel-title">Field
<input class="btn-input calc-trigger" type="checkbox" id="evoR" /><label class="btn btn-xwide" for="evoR"><img src="image_res/133.png"><br>Extreme Evoboost</label>
</div>
</div>
<!--squirrelboy1225's HTML additions are right here-->

<!--squirrelboy1225's HTML additions are right here-->

<!--...two years later, my HTML additions are fucking everywhere. they spread like cancer-->
<p>Please enter your custom set here.</p>
Spread Name: <input type = "text" id = "spreadName" style = "width: 60%" value = "My Custom Set">
<br>
Expand Down Expand Up @@ -464,6 +470,7 @@ <h4 class="panel-title">Field
<script type="text/javascript" src="script_res/setdex_globalLink.js"></script>
<script type="text/javascript" src="script_res/setdex_nuggetBridge.js"></script>
<script type="text/javascript" src="script_res/setdex_tt2017.js" id = "TTScript"></script>
<script type="text/javascript" src="script_res/setdex_tt2018.js" id = "TTScript"></script>
<script type="text/javascript" src="script_res/setdex_smogon.js" id = "SmogScript"></script>
<script type="text/javascript" src="script_res/setdex_xy.js" id = "XYScript"></script>
<script type="text/javascript" src="script_res/setdex_sm.js" id = "SMScript"></script>
Expand Down
15 changes: 15 additions & 0 deletions script_res/damage.js
Original file line number Diff line number Diff line change
Expand Up @@ -851,6 +851,21 @@ function checkEvo(p1, p2){
p2.boosts[SP] = Math.min(6, p2.boosts[SP] + 2);
}

if($('#clangL').prop("checked")){
p1.boosts[AT] = Math.min(6, p1.boosts[AT] + 1);
p1.boosts[DF] = Math.min(6, p1.boosts[DF] + 1);
p1.boosts[SA] = Math.min(6, p1.boosts[SA] + 1);
p1.boosts[SD] = Math.min(6, p1.boosts[SD] + 1);
p1.boosts[SP] = Math.min(6, p1.boosts[SP] + 1);
}
if($('#clangR').prop("checked")){
p2.boosts[AT] = Math.min(6, p2.boosts[AT] + 1);
p2.boosts[DF] = Math.min(6, p2.boosts[DF] + 1);
p2.boosts[SA] = Math.min(6, p2.boosts[SA] + 1);
p2.boosts[SD] = Math.min(6, p2.boosts[SD] + 1);
p2.boosts[SP] = Math.min(6, p2.boosts[SP] + 1);
}

}

function checkDownload(source, target) {
Expand Down
8 changes: 7 additions & 1 deletion script_res/nb_calc.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ body, html {
font-family: Open Sans;
}

#wideguard {
display: block;
margin: 0 auto;
padding-bottom: 0.5em;
}

#notice{
font-size: 30pt;
color: #e64946;
Expand Down Expand Up @@ -144,4 +150,4 @@ h1 {
h1 a {
color: #fff;
text-decoration: none;
}
}
6 changes: 1 addition & 5 deletions script_res/setdex_sm.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
var SETDEX_SM = {};

var components = [
SETDEX_TT2017,
SETDEX_CUSTOM,
SETDEX_SMOGON
SETDEX_TT2018
];

for (var i=0; i<components.length; i++) {
Expand Down Expand Up @@ -37,5 +35,3 @@ for (var i=0; i<components.length; i++) {
}
}
}


Loading

0 comments on commit a4dc1c2

Please sign in to comment.