Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var iv = null
- if (attack !== null && defense !== null && stamina !== null) {
- iv = 100 * (attack + defense + stamina) / 45
- }
- var IvIcon = ''
- if (IvIcon === 0 || noPokeIVIcons) {
- var IvIconFontSize = Math.round(22 * (scale + 0.1))
- var ivClass = 'iv-icon under80'
- if (Math.round(iv) === 100) {
- ivClass = 'iv-icon iv100'
- } else if (Math.round(iv) >= 90) {
- ivClass = 'iv-icon over90'
- } else if (Math.round(iv) >= 90) {
- ivClass = 'iv-icon over80'
- } else if (Math.round(iv) >= 80) {
- ivClass = 'iv-icon over80'
- } else if (Math.round(iv) === 0) {
- ivClass = 'iv-icon iv0'
- }
- IvIcon = '<span class="' + ivClass + '" style="font-size: ' + IvIconFontSize + 'px;position:absolute;top:-5px;left:-' + IvIconFontSize + 'px;" >' + Math.round(iv) + '</span>'
- }
- var html = ''
- if (weather === 0 || noWeatherIcons) {
- html = '<img src="' + iconpath + 'pokemon_icon_' + pokemonIdStr + '_' + formStr + costume + '.png" style="width:' + scaledIconSizeWidth + 'px;height:auto;'
- if (iv === 100 && !noIvShadow) {
- html += 'filter:drop-shadow(0 0 10px red)drop-shadow(0 0 10px red);-webkit-filter:drop-shadow(0 0 10px red)drop-shadow(0 0 10px red);'
- }
- html += '"/>' +
- IvIcon // Only Show if its not empty.
- } else if (noWeatherIcons === false) {
- html = '<img src="' + iconpath + 'pokemon_icon_' + pokemonIdStr + '_' + formStr + costume + '.png" style="width:' + scaledIconSizeWidth + 'px;height:auto;'
- if (iv === 100 && !noIvShadow) {
- html += 'filter:drop-shadow(0 0 10px red)drop-shadow(0 0 10px red);-webkit-filter:drop-shadow(0 0 10px red)drop-shadow(0 0 10px red);'
- }
- html += '"/>' +
- IvIcon + // Only Show if its not empty.
- '<img src="static/weather/a-' + weather + '.png" style="width:' + scaledWeatherIconSizeWidth + 'px;height:auto;position:absolute;top:-' + scaledWeatherIconOffset + 'px;left:' + scaledWeatherIconSizeWidth + 'px;"/>'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement