Fixing .css

This commit is contained in:
Rafael Figueiredo Zanetti
2023-04-29 21:25:54 -03:00
parent d3e3d1f270
commit cce018220d
2 changed files with 2032 additions and 2136 deletions
File diff suppressed because it is too large Load Diff
+23 -87
View File
@@ -319,7 +319,7 @@
data-i18n-title="spam-attack"
></span>
<img
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/ordem-paranormal-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/punch.png"
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/t20-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/punch.png"
class="attack-icon hiddenelement"
title="Ataque"
data-i18n-title="spam-attack"
@@ -332,7 +332,7 @@
data-i18n-title="spam-damage"
></span>
<img
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/ordem-paranormal-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/explosion.png"
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/t20-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/explosion.png"
class="damage-icon hiddenelement"
title="Dano"
data-i18n-title="spam-damage"
@@ -345,7 +345,7 @@
data-i18n-title="spam-roll"
></span>
<img
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/ordem-paranormal-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/numerology.png"
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/t20-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/numerology.png"
class="roll-icon hiddenelement"
title="Rolagem"
data-i18n-title="spam-roll"
@@ -358,7 +358,7 @@
data-i18n-title="spam-skills"
></span>
<img
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/ordem-paranormal-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/skills.png"
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/t20-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/skills.png"
class="skills-icon hiddenelement"
title="Perícias"
data-i18n-title="spam-skills"
@@ -371,7 +371,7 @@
data-i18n-title="resistance"
></span>
<img
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/ordem-paranormal-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/resistence.png"
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/t20-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/resistence.png"
class="resist-icon hiddenelement"
title="Resistências"
data-i18n-title="resistencias"
@@ -384,7 +384,7 @@
data-i18n-title="spam-defense"
></span>
<img
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/ordem-paranormal-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/antivirus.png"
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/t20-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/antivirus.png"
class="defense-icon hiddenelement"
title="Defesa"
data-i18n-title="spam-defense"
@@ -397,7 +397,7 @@
data-i18n-title="spam-armor"
></span>
<img
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/ordem-paranormal-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/armor.png"
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/t20-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/armor.png"
class="armor-icon hiddenelement"
title="Armadura"
data-i18n-title="spam-armor"
@@ -410,7 +410,7 @@
data-i18n-title="spam-shield"
></span>
<img
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/ordem-paranormal-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/shield.png"
src="https://raw.githubusercontent.com/RoenMidnight/roll20-character-sheets/t20-goty-menace-character-sheet/Tormenta20%20-%20Jogo%20do%20Ano/icons/shield.png"
class="shield-icon hiddenelement"
title="Escudo"
data-i18n-title="spam-shield"
@@ -6255,26 +6255,9 @@
});
});
on(`sheet:opened`, function(){
getAttrs([
"game_system", "ficha_modificadores",
], function(v){
$20('.span-court').addClass('background-tormenta');
$20('.fortification-container span').addClass('background-tormenta');
$20('.fortification-container textarea').addClass('border-tormenta');
if(v.ficha_modificadores == 1){
$20('.mod').removeClass('hiddenelement');
}
});
});
on(`sheet:opened change:rolltemp change:ataquetemp change:danotemp change:resistemp change:periciatemp change:passivatemp change:bloqueiotemp change:esquivatemp change:rdtemp change:fortemp change:agitemp change:vigtemp change:inttemp change:sabtemp change:cartemp change:abalado change:agarrado change:alquebrado change:apavorado change:atordoado change:caido change:cego change:confuso change:debilitado change:desprevenido change:doente change:emchama change:enfeiticado change:enjoado change:enreado change:envenenado change:esmorecido change:exausto change:fascinado change:fatigado change:fraco change:frustrado change:imovel change:inconsciente change:indefeso change:lento change:ofuscado change:paralizado change:pasmo change:petrificacao change:sangrando change:surdo change:surpreendido change:vulneravel`, function(){
getAttrs([
"abalado","agarrado","alquebrado","apavorado","atordoado","caido","cego","confuso","debilitado","desprevenido","doente","emchama","enfeiticado","enjoado","enreado",
"envenenado","esmorecido","exausto","fascinado","fatigado","fraco","frustrado","imovel","inconsciente","indefeso","lento","ofuscado","paralizado","pasmo","petrificacao",
"sangrando","surdo","surpreendido","vulneravel", "desafesaoutrostemp",
"desafesaoutrostemp",
"rolltemp", "ataquetemp", "periciatemp", "danotemp", "resistemp", "passivatemp", "bloqueiotemp", "esquivatemp", "rdtemp",
"fortemp", "agitemp", "vigtemp", "inttemp", "sabtemp", "cartemp"
], function(v){
@@ -6287,53 +6270,6 @@
let passiva = 0;
let show_global = false;
if(v.abalado == 1){ pericia = -2; show_global = true;}
if(v.agarrado == 1){ ataque = -2; setAttrs({"desprevenido": 1, "imovel": 1}); show_global = true;}
if(v.atordoado == 1){ setAttrs({"desprevenido": 1}); show_global = true;}
if(v.enreado == 1){ setAttrs({"lento":1, "vulneravel":1}); ataque = -2; show_global = true;}
if(v.exausto == 1){ setAttrs({"debilitado": 1, "lento": 1, "vulneravel":1}); show_global = true;}
if(v.fatigado == 1){ setAttrs({"fraco": 1, "vulneravel":1}); show_global = true;}
if(v.fraco == 1){ pericia_fisica = -2; show_global = true;}
if(v.frustrado == 1){ pericia_mental = -2; show_global = true;}
if(v.inconsciente == 1){ setAttrs({"indefeso":1}); show_global = true;}
if(v.ofuscado == 1){ ataque = percepcao = -2; show_global = true;}
if(v.paralizado == 1){ setAttrs({"imovel":1, "indefeso": 1 }); show_global = true;}
if(v.petrificacao == 1){ setAttrs({"inconsciente":1}); show_global = true;}
if(v.surpreendido == 1){ setAttrs({"desprevenido":1}); show_global = true;}
if(v.vulneravel == 1){ passiva = -2; show_global = true; }
if(v.surdo == 1){ iniciativa = -5; show_global = true;}
if(v.apavorado == 1){ pericia = -5; show_global = true;}
if(v.fascinado == 1){ percepcao = -5; show_global = true;}
if(v.cego == 1){ cego = -5; setAttrs({"desprevenido": 1, "lento": 1}); show_global = true;}
if(v.debilitado == 1){ pericia_fisica = -5; show_global = true;}
if(v.esmorecido == 1){ pericia_mental = -5; show_global = true;}
if(v.desprevenido == 1){ passiva = reflexo = -5; show_global = true;}
if(v.indefeso == 1){ setAttrs({"desprevenido":1}); passiva = -10; show_global = true;}
if(v.alquebrado == 1) { show_global = true; }
if(v.confuso == 1) { show_global = true; }
if(v.emchama == 1) { show_global = true; }
if(v.doente == 1) { show_global = true; }
if(v.enfeiticado == 1) { show_global = true; }
if(v.enjoado == 1) { show_global = true; }
if(v.envenenado == 1) { show_global = true; }
if(v.imovel == 1) { show_global = true; }
if(v.lento == 1) { show_global = true; }
if(v.imovel == 1) { show_global = true; }
if(v.sangrando == 1){ show_global = true; }
if (parseInt(ataque) < parseInt(ataque_cc)){ ataque_cc = 0; }
if (parseInt(ataque) < parseInt(ataque_dis)){ ataque_dis = 0 }
if (parseInt(pericia) < parseInt(pericia_fisica)) { pericia_fisica = 0; }
if (parseInt(pericia) < parseInt(pericia_mental)) { pericia_mental = 0; }
if (parseInt(pericia) < parseInt(percepcao)) { percepcao = 0; }
if (parseInt(pericia) < parseInt(iniciativa)) { iniciativa = 0; }
if (parseInt(pericia) < parseInt(reflexo)) { reflexo = 0; }
if (parseInt(pericia) < parseInt(cego) || parseInt(pericia_fisica) < parseInt(cego)) { cego = 0; }
if (parseInt(pericia) < parseInt(ataque)) { ataque = 0; }
$20('.passivacaido-color').addClass('hiddenelement');
if(v.caido == 1){ ataque_cc -= 5; $20('.passivacaido-color').removeClass('hiddenelement'); show_global = true; }
let global_array = [
[v.rolltemp, '.roll-span', '.roll-icon'],
[parseInt(v.ataquetemp) + parseInt(ataque), '.attack-span', '.attack-icon'],
@@ -6368,9 +6304,9 @@
parseInt(v.inttemp) != 0 || parseInt(v.sabtemp) != 0 || parseInt(v.cartemp) != 0 ||
show_global
) {
$20('.global-color').removeClass('hiddenelement');
$20('.sheet-global-color').removeClass('hiddenelement');
} else {
$20('.global-color').addClass('hiddenelement');
$20('.sheet-global-color').addClass('hiddenelement');
}
@@ -6768,26 +6704,26 @@
let switch_selector = 'switch-selected';
if (v.cstype == 0) {
$20('.left-container').removeClass('hiddenelement');
$20('.right-container').removeClass('hiddenelement');
$20('.charnotes-container').removeClass('hiddenelement');
$20('.sheet-left-container').removeClass('hiddenelement');
$20('.sheet-right-container').removeClass('hiddenelement');
$20('.sheet-charnotes-container').removeClass('hiddenelement');
$20('.left-global-container').addClass('hiddenelement');
$20('.right-global-container').addClass('hiddenelement');
$20('.global-columns').addClass('hiddenelement');
$20('.sheet-left-global-container').addClass('hiddenelement');
$20('.sheet-right-global-container').addClass('hiddenelement');
$20('.sheet-global-columns').addClass('hiddenelement');
$20('.sheet-pj').addClass(switch_selector);
$20('.sheet-mod').removeClass(switch_selector);
}
if (v.cstype == 1){
$20('.left-container').addClass('hiddenelement');
$20('.right-container').addClass('hiddenelement');
$20('.charnotes-container').addClass('hiddenelement');
$20('.sheet-left-container').addClass('hiddenelement');
$20('.sheet-right-container').addClass('hiddenelement');
$20('.sheet-charnotes-container').addClass('hiddenelement');
$20('.left-global-container').removeClass('hiddenelement');
$20('.right-global-container').removeClass('hiddenelement');
$20('.global-columns').removeClass('hiddenelement');
$20('.sheet-left-global-container').removeClass('hiddenelement');
$20('.sheet-right-global-container').removeClass('hiddenelement');
$20('.sheet-global-columns').removeClass('hiddenelement');
$20('.sheet-pj').removeClass(switch_selector);
$20('.sheet-mod').addClass(switch_selector);