diff --git a/README.md b/README.md index 6e1b5e29..ff6a4e43 100644 --- a/README.md +++ b/README.md @@ -7,14 +7,11 @@ Quick reference sheet for D&D 5e Project status ============== -This repository is not actively maintained. In particular, it hasn't been updated for the 2024 edition of the D&D 5e rules. - -The project has been forked many times, both to update the reference sheet for new D&D 5e rules and to adapt it to other rulesets. -Check out any of the [forks](https://github.com/crobi/dnd5e-quickref/forks) if you're looking for other versions of this reference sheet. +This repository has been updated for the **2024 edition** of the D&D 5e rules. +It also includes internationalization support for Brazilian Portuguese (pt-BR) and Spanish (es). Icons ============== All icons are provided by http://game-icons.net/ - diff --git a/img/book-cover-open.png b/img/book-cover-open.png new file mode 100644 index 00000000..937de52f Binary files /dev/null and b/img/book-cover-open.png differ diff --git a/img/convince.png b/img/convince.png new file mode 100644 index 00000000..1ebc8dcb Binary files /dev/null and b/img/convince.png differ diff --git a/index.html b/index.html new file mode 100644 index 00000000..91489246 --- /dev/null +++ b/index.html @@ -0,0 +1,188 @@ + + + + + + D&D 5e quick reference + + + + + + + + + + + +
+ + + +
+
+ + +
+
+ Movement limited by movement speed +
+
+
+ You can move at any time during your turn (before, after, or during actions). +
+
+
+
+
+ + +
+
+ Action 1/turn +
+
+
+ You can also interact with one object or feature of the + environment for free. +
+
+
+
+ + +
+
+ Bonus action max. 1/turn +
+
+
+ You can take a bonus action only when a special ability, spell, or feature + states that you can do something as a bonus action. +
+
+
+
+ + +
+
+ Reaction max. 1/round +
+
+
+ A reaction is an instant response to a trigger of some kind, which + can occur on your turn or on someone else's. +
+
+
+
+ + +
+
+ Condition +
+
+
+ Conditions alter your capabilities in a variety of ways, and can arise as a result of a spell, a class feature, a monster's attack, or other effect. +
+
+
+
+ + +
+
+ Environmental Effects +
+
+
+ Effects that obscure vision can prove a significant hindrance to most adventuring tasks. +
+
+
+ The presence or absence of light in an environment creates three categories of illumination. +
+
+
+ Some creatures have extraordinary senses that allow them to perceive their environment. +
+
+
+ Obstacles can provide cover during combat, making a target more difficult to harm. +
+
+
+
+ +
+ + + + + + + + + + + + + + + + diff --git a/js/data_action.js b/js/data_action.js index 67362812..78b6b23f 100644 --- a/js/data_action.js +++ b/js/data_action.js @@ -1,4 +1,4 @@ -data_action = [ +var data_action_en = [ { title: "Attack", icon: "crossed-swords", @@ -16,40 +16,38 @@ data_action = [ { title: "Grapple", icon: "grab", - subtitle: "Special melee attack", + subtitle: "Unarmed Strike", description: "Attempt to grab a creature or wrestle with it", - reference: "PHB, pg. 195.", + reference: "PHB 2024", bullets: [ - "You can use the Attack action to make a special melee attack, a grapple. If you're able to make multiple attacks with the Attack action, this attack replaces one of them.", - "The target of your grapple must be no more than one size larger than you, and it must be within your reach.", - "Using at least one free hand, you try to seize the target by making a grapple check, a Strength (Athletics) check contested by the target's Strength (Athletics) or Dexterity (Acrobatics) check (the target chooses the ability to use).", - "If you succeed, you subject the target to the grappled condition (its speed is set to 0)." + "As an Unarmed Strike, you can grapple a creature within reach.", + "The target must succeed on a Strength or Dexterity saving throw (its choice).", + "The DC is 8 + your Strength modifier + your Proficiency Bonus.", + "On a failed save, the target is Grappled." ] }, { title: "Shove", icon: "hand", - subtitle: "Special melee attack", + subtitle: "Unarmed Strike", description: "Shove a creature, either to knock it prone or push it away from you", - reference: "PHB, pg. 195.", + reference: "PHB 2024", bullets: [ - "Using the Attack action, you can make a special melee attack to shove a creature. If you're able to make multiple attacks with the Attack action, this attack replaces one of them.", - "The target of your shove must be no more than one size larger than you, and it must be within your reach.", - "You make a Strength (Athletics) check contested by the target's Strength (Athletics) or Dexterity (Acrobatics) check (the target chooses the ability to use).", - "If you win the contest, you either knock the target prone or push it 5 feet away from you." + "As an Unarmed Strike, you can shove a creature within reach.", + "The target must succeed on a Strength or Dexterity saving throw (its choice).", + "The DC is 8 + your Strength modifier + your Proficiency Bonus.", + "On a failed save, the target is knocked Prone or pushed 5 feet (1.5m) away." ] }, { - title: "Cast a spell", + title: "Magic", icon: "magic-swirl", subtitle: "Cast time of 1 action", - description: "Cast a spell with a casting time of 1 action", - reference: "PHB, pg. 192.", + description: "Cast a spell or use a magic item", + reference: "PHB 2024", bullets: [ - "You can't cast a spell with you action and a different spell with your bonus action in the same turn, except if the action is used to cast a cantrip.", - "The target of a spell must be within the spell's range. To target something, you must have a clear path to it, so it can't be behind total cover.", - "Spells with material components do not consume the material unless explicitly stated. Unless the cost of a material is given, you can assume that the cost is negligible and the material is simply available in a component pouch.", - "Some spells require you to maintain concentration in order to keep their magic active. If you lose concentration, such a spell ends. You lose concentration on a spell if you cast another spell that requires concentration or when you are incapacitated. Each time you take damage, you must make a Constitution saving throw to maintain your concentration. The DC equals 10 or half the damage you take, whichever number is higher." + "Cast a spell with a casting time of an Action.", + "Use a magic item that requires an Action to activate." ] }, { @@ -98,47 +96,36 @@ data_action = [ icon: "telepathy", subtitle: "Grant an ally advantage", description: "Grant an ally advantage on an ability check or attack", - reference: "PHB, pg. 192.", + reference: "PHB 2024", bullets: [ - "The target gains advantage on the next ability check it makes to perform the task you are helping with.", - "Alternatively, the target gains advantage on the next attack roll against against a creature within 5 feet of you.", + "The target gains advantage on the next ability check it makes to perform the task. You must have proficiency in the skill if it requires a skill check without tools.", + "Alternatively, the target gains advantage on the next attack roll against against a creature within 5 feet (1.5m) of you.", "The advantage lasts until the start of your next turn." ] }, { - title: "Use Object", + title: "Utilize", icon: "snatch", subtitle: "Interact, use special abilities", - description: "Interact with a second object or use special object abilities", - reference: "PHB, pg. 193.", - bullets: [ - "You can interact with one object for free during your turn (such as drawing a weapon or opening a door). If you want to interact with a second object, use this action.", - "When an object requires your action for its use, you also take this action." - ] - }, - { - title: "Use shield", - icon: "round-shield", - subtitle: "Equip or unequip a shield", - description: "Equip or unequip a shield", - reference: "PHB, pgs. 144-146.", + description: "Interact with an object", + reference: "PHB 2024", bullets: [ - "A shield always takes an action to equip or unequip.", - "Armor takes several minutes to equip or unequip." + "You normally interact with an object while doing something else. If you need to dedicate your attention to it (or use a second object), use the Utilize action.", + "Equipping or unequipping a shield uses the Utilize action.", + "Drinking a potion yourself is a Bonus Action, but administering it to someone else uses the Utilize action." ] }, { title: "Hide", icon: "hood", subtitle: "", - description: "Attempt to hide", - reference: "PHB, pg. 192.", + description: "Attempt to conceal yourself", + reference: "PHB 2024", bullets: [ - "You can't hide from a creature that can see you. You must have total cover, be in a heavily obscured area, be invisible, or otherwise block the enemy's vision.", - "If you make noise (such as shouting a warning or knocking over a vase), you give away your position.", - "When you try to hide, make a Dexterity (Stealth) check and note the result. Until you are discovered or you stop hiding, that check's total is contested by the Wisdom (Perception) check of any creature that actively searches for signs of your presence.", - "A creature notices you even if it isn't searching unless your Stealth check is higher than its Passive Perception.", - "Out of combat, you may also use a Dexterity (Stealth) check for acts like concealing yourself from enemies, slinking past guards, slipping away without being noticed, or sneaking up on someone without being seen or heard." + "You must be heavily obscured, or behind Three-Quarters or Total Cover.", + "Make a DC 15 Dexterity (Stealth) check.", + "On a success, you gain the Invisible condition.", + "The condition ends if you make a sound louder than a whisper, an enemy finds you, you make an attack roll, or you cast a spell with a verbal component." ] }, { @@ -146,11 +133,35 @@ data_action = [ icon: "magnifying-glass", subtitle: "", description: "Devote your attention to finding something", - reference: "PHB, pg. 193.", + reference: "PHB 2024", bullets: [ - "Depending on the nature of your search, the DM might have you make a Wisdom (Perception) check or an Intelligence (Investigation) check." + "Make a Wisdom (Perception) check to discern a hidden object or creature.", + "Make an Intelligence (Investigation) check to deduce the location of a hidden object or creature.", + "Make a Wisdom (Survival) check to follow tracks." ] }, + { + title: "Study", + icon: "book-cover-open", + subtitle: "Recall information", + description: "Study a creature, object, or text", + reference: "PHB 2024", + bullets: [ + "Make an Intelligence check to recall information or deduce something.", + "Applicable skills: Arcana, History, Nature, Religion." + ] + }, + { + title: "Influence", + icon: "convince", + subtitle: "Interact socially", + description: "Influence a creature's attitude or actions", + reference: "PHB 2024", + bullets: [ + "Make a Charisma check to influence a creature.", + "Applicable skills: Animal Handling, Deception, Intimidation, Persuasion." + ] + }, { title: "Ready", icon: "stopwatch", @@ -197,3 +208,52 @@ data_action = [ ] } ] + +var data_action_pt = [ + { title: "Ataque", icon: "crossed-swords", subtitle: "Corpo-a-corpo ou à distância", description: "Ataca com uma arma ou ataque desarmado", reference: "LDJ 2024", bullets: ["Pode substituir um ataque por Agarrar ou Empurrar.", "Pode equipar/desequipar uma arma como parte do ataque."] }, + { title: "Agarrar", icon: "grab", subtitle: "Ataque Desarmado", description: "Tentar agarrar uma criatura", reference: "LDJ 2024", bullets: ["O alvo faz resistência de For/Des (CD 8 + For + Proficiência).", "Se falhar, fica Agarrado."] }, + { title: "Empurrar", icon: "hand", subtitle: "Ataque Desarmado", description: "Empurrar ou derrubar", reference: "LDJ 2024", bullets: ["O alvo faz resistência de For/Des (CD 8 + For + Proficiência).", "Se falhar, é derrubado Caído ou empurrado 1,5m (5ft)."] }, + { title: "Magia", icon: "magic-swirl", subtitle: "Tempo: 1 Ação", description: "Conjurar magia ou usar item mágico", reference: "LDJ 2024", bullets: ["Conjura uma magia de tempo de 1 Ação.", "Ativa um item mágico que exija uma Ação."] }, + { title: "Disparada", icon: "sprint", subtitle: "Dobro de deslocamento", description: "Ganha deslocamento extra", reference: "LDJ 2024", bullets: ["O aumento é igual ao seu deslocamento."] }, + { title: "Desengajar", icon: "journey", subtitle: "Sem ataques de oportunidade", description: "Seu movimento não provoca ataques", reference: "LDJ 2024", bullets: [] }, + { title: "Esquiva", icon: "aura", subtitle: "Aumenta defesas", description: "Foca em evitar ataques", reference: "LDJ 2024", bullets: ["Ataques contra você têm desvantagem.", "Testes de resistência de Destreza têm vantagem."] }, + { title: "Escapar", icon: "manacles", subtitle: "Escapar de agarre", description: "Escapar de ser agarrado", reference: "LDJ 2024", bullets: ["Faça um teste de Força (Atletismo) ou Destreza (Acrobacia) contra a CD de agarre."] }, + { title: "Ajuda", icon: "telepathy", subtitle: "Concede vantagem", description: "Ajuda um aliado", reference: "LDJ 2024", bullets: ["O alvo ganha vantagem em seu próximo teste ou ataque.", "Se for um teste de perícia sem ferramentas, você deve ter proficiência na perícia."] }, + { title: "Utilizar", icon: "snatch", subtitle: "Interagir com objetos", description: "Interagir com objeto", reference: "LDJ 2024", bullets: ["Equipar um escudo ou interagir ativamente com um objeto complexo.", "Beber uma poção é Ação Bônus; dar a alguém requer a Ação Utilizar."] }, + { title: "Esconder-se", icon: "hood", subtitle: "Ficar Invisível", description: "Ocultar-se de inimigos", reference: "LDJ 2024", bullets: ["Requer Cobertura Três Quartos, Total ou estar Fortemente Obscurecido.", "Faça um teste de Furtividade CD 15. Sucesso = condição Invisível."] }, + { title: "Procurar", icon: "magnifying-glass", subtitle: "Encontrar algo", description: "Dedicado a achar algo oculto", reference: "LDJ 2024", bullets: ["Use Percepção, Investigação ou Sobrevivência."] }, + { title: "Estudar", icon: "book-cover-open", subtitle: "Lembrar informações", description: "Estudar alvo ou texto", reference: "LDJ 2024", bullets: ["Testes de Inteligência: Arcanismo, História, Natureza ou Religião."] }, + { title: "Influenciar", icon: "convince", subtitle: "Interação social", description: "Mudar atitude de criatura", reference: "LDJ 2024", bullets: ["Testes de Carisma: Enganação, Intimidação, Persuasão, ou Adestrar Animais."] }, + { title: "Preparar", icon: "stopwatch", subtitle: "Ação com gatilho", description: "Prepara uma reação", reference: "LDJ 2024", bullets: ["Escolhe um gatilho e a ação de resposta."] }, + { title: "Usar hab. classe", icon: "embrassed-energy", subtitle: "Poder da classe", description: "Uso de poder de classe/espécie", reference: "LDJ 2024", bullets: [] }, + { title: "Estabilizar", icon: "first-aid", subtitle: "Primeiros socorros", description: "Impede morte de criatura", reference: "LDJ 2024", bullets: ["Teste de Medicina CD 10 ou usar Kit de Curandeiro."] }, + { title: "Improvisar", icon: "juggler", subtitle: "Ações criativas", description: "Fazer o que imaginar", reference: "LDJ 2024", bullets: ["O Mestre decide se é possível e qual teste é necessário."] } +]; + +var data_action_es = [ + { title: "Ataque", icon: "crossed-swords", subtitle: "Cuerpo a cuerpo o distancia", description: "Ataca con un arma o ataque desarmado", reference: "PHB 2024", bullets: ["Puedes sustituir un ataque por Agarrar o Empujar.", "Puedes equipar/desequipar un arma como parte del ataque."] }, + { title: "Agarrar", icon: "grab", subtitle: "Ataque desarmado", description: "Intentar agarrar", reference: "PHB 2024", bullets: ["El objetivo hace salvación de Fue/Des (CD 8 + Fue + Competencia).", "Si falla, queda Agarrado."] }, + { title: "Empujar", icon: "hand", subtitle: "Ataque desarmado", description: "Empujar o derribar", reference: "PHB 2024", bullets: ["El objetivo hace salvación de Fue/Des (CD 8 + Fue + Competencia).", "Si falla, cae Derribado o es empujado 5 pies (1,5m)."] }, + { title: "Magia", icon: "magic-swirl", subtitle: "Tiempo de conjuro: 1 Acción", description: "Lanzar conjuro o usar objeto mágico", reference: "PHB 2024", bullets: ["Lanza un conjuro de 1 Acción.", "Activa un objeto mágico que exija una Acción."] }, + { title: "Carrera", icon: "sprint", subtitle: "Doble de velocidad", description: "Gana movimiento extra", reference: "PHB 2024", bullets: ["El incremento es igual a tu velocidad."] }, + { title: "Destrabarse", icon: "journey", subtitle: "Previene ataques de oportunidad", description: "Tu movimiento no provoca ataques", reference: "PHB 2024", bullets: [] }, + { title: "Esquivar", icon: "aura", subtitle: "Aumenta defensas", description: "Enfócate en evitar ataques", reference: "PHB 2024", bullets: ["Los ataques en tu contra tienen desventaja.", "Tiradas de salvación de Destreza con ventaja."] }, + { title: "Escapar", icon: "manacles", subtitle: "Escapar de agarre", description: "Escapar de ser agarrado", reference: "PHB 2024", bullets: ["Haz una prueba de Fuerza (Atletismo) o Destreza (Acrobacias) contra la CD del agarre."] }, + { title: "Ayuda", icon: "telepathy", subtitle: "Otorga ventaja", description: "Ayuda a un aliado", reference: "PHB 2024", bullets: ["El objetivo tiene ventaja en su próxima prueba o ataque.", "Si es una prueba sin herramientas, debes tener competencia."] }, + { title: "Utilizar", icon: "snatch", subtitle: "Interactuar con objetos", description: "Interactuar con un objeto", reference: "PHB 2024", bullets: ["Equipar un escudo o interactuar activamente con un objeto.", "Beber una poción es Acción Adicional; dársela a otro es Acción Utilizar."] }, + { title: "Esconderse", icon: "hood", subtitle: "Quedar Invisible", description: "Ocultarte de los enemigos", reference: "PHB 2024", bullets: ["Requiere Cobertura 3/4, Total o estar Fuertemente oscurecido.", "Haz una prueba de Sigilo CD 15. Éxito = Invisible."] }, + { title: "Buscar", icon: "magnifying-glass", subtitle: "Encontrar algo", description: "Dedicado a buscar algo oculto", reference: "PHB 2024", bullets: ["Usa Percepción, Investigación o Supervivencia."] }, + { title: "Estudiar", icon: "book-cover-open", subtitle: "Recordar información", description: "Estudiar objetivo o texto", reference: "PHB 2024", bullets: ["Pruebas de Inteligencia: Arcano, Historia, Naturaleza, Religión."] }, + { title: "Influenciar", icon: "convince", subtitle: "Interacción social", description: "Cambiar actitud de criatura", reference: "PHB 2024", bullets: ["Pruebas de Carisma: Engaño, Intimidación, Persuasión o Trato con animales."] }, + { title: "Preparar", icon: "stopwatch", subtitle: "Acción con detonante", description: "Prepara una reacción", reference: "PHB 2024", bullets: ["Elige un detonante y la acción de respuesta."] }, + { title: "Usar hab. clase", icon: "embrassed-energy", subtitle: "Poder de clase", description: "Uso de poder de clase/raza", reference: "PHB 2024", bullets: [] }, + { title: "Estabilizar", icon: "first-aid", subtitle: "Primeros auxilios", description: "Impide muerte de criatura", reference: "PHB 2024", bullets: ["Prueba de Medicina CD 10 o usa un Kit de Sanador."] }, + { title: "Improvisar", icon: "juggler", subtitle: "Acciones creativas", description: "Hacer lo que imagines", reference: "PHB 2024", bullets: ["El DM decide si es posible y qué prueba se requiere."] } +]; + +if (typeof current_lang === 'undefined') { + var lang_override = localStorage.getItem('quickref_lang'); + var nav_lang = navigator.language ? navigator.language.slice(0, 2) : 'en'; + var current_lang = lang_override || nav_lang; +} +var data_action = current_lang === 'pt' ? data_action_pt : (current_lang === 'es' ? data_action_es : data_action_en); diff --git a/js/data_bonusaction.js b/js/data_bonusaction.js index dbd539d2..2120d1ee 100644 --- a/js/data_bonusaction.js +++ b/js/data_bonusaction.js @@ -1,10 +1,10 @@ -data_bonusaction = [ +var data_bonusaction_en = [ { title: "Offhand Attack", icon: "crossed-swords", subtitle: "Use with the Attack action", description: "Attack with your off hand", - reference: "PHB, pgs. 192,194-195.", + reference: "PHB 2024", bullets: [ "Only usable if you take the Attack action and attack with a light melee weapon that you're holding in one hand.", "Perform a single attack with a different light melee weapon that you're holding in the other hand.", @@ -13,14 +13,14 @@ data_bonusaction = [ ] }, { - title: "Cast a spell", + title: "Magic", icon: "magic-swirl", subtitle: "Cast time of 1 bonus action", description: "Cast a spell with a casting time of 1 bonus action", - reference: "PHB, pg. 192.", + reference: "PHB 2024", bullets: [ - "You can't cast a spell with you action and a different spell with your bonus action in the same turn, except if the action is used to cast a cantrip.", - "For further details, see the Cast a spell action." + "You can't cast a spell with your action and a different spell with your bonus action in the same turn, except if the action is used to cast a cantrip.", + "For further details, see the Magic action." ] }, { @@ -34,3 +34,80 @@ data_bonusaction = [ ] } ] + +var data_bonusaction_pt = [ + { + title: "Ataque mão inábil", + icon: "crossed-swords", + subtitle: "Use com a ação de Ataque", + description: "Ataque com sua mão inábil", + reference: "LDJ 2024", + bullets: [ + "Utilizável apenas se você realizar a ação de Ataque e atacar com uma arma corpo-a-corpo leve que esteja segurando em uma mão.", + "Realize um único ataque com uma arma corpo-a-corpo leve diferente que esteja segurando na outra mão.", + "Você não adiciona seu modificador de atributo ao dano do ataque bônus, a menos que o modificador seja negativo.", + "Se qualquer uma das armas tiver a propriedade de arremesso, você pode arremessar a arma, em vez de fazer um ataque corpo-a-corpo." + ] + }, + { + title: "Magia", + icon: "magic-swirl", + subtitle: "Tempo de conjuração: 1 ação bônus", + description: "Conjura magia com tempo de 1 ação bônus", + reference: "LDJ 2024", + bullets: [ + "Você não pode conjurar uma magia com sua ação e uma magia diferente com sua ação bônus no mesmo turno, exceto se a ação principal for usada para conjurar um truque.", + "Para mais detalhes, veja a ação Magia." + ] + }, + { + title: "Usar hab. classe", + icon: "embrassed-energy", + subtitle: "Algumas características usam ações bônus", + description: "Usa uma característica de classe que usa uma ação bônus", + reference: "Veja a página da classe para mais informações.", + bullets: [] + } +]; + +var data_bonusaction_es = [ + { + title: "Ataque arma sec.", + icon: "crossed-swords", + subtitle: "Úsalo con la acción de Ataque", + description: "Ataca con el arma secundaria", + reference: "PHB 2024", + bullets: [ + "Solo se puede usar si realizas la acción de Ataque y atacas con un arma cuerpo a cuerpo ligera que sostienes en una mano.", + "Realiza un único ataque con un arma cuerpo a cuerpo ligera diferente que sostienes en la otra mano.", + "No añades tu modificador de característica al daño del ataque adicional, a menos que el modificador sea negativo.", + "Si alguna de las armas tiene la propiedad arrojadiza, puedes lanzar el arma en lugar de hacer un ataque cuerpo a cuerpo." + ] + }, + { + title: "Magia", + icon: "magic-swirl", + subtitle: "Tiempo de conjuro: 1 acción adicional", + description: "Lanza un conjuro de 1 acción adicional", + reference: "PHB 2024", + bullets: [ + "No puedes lanzar un conjuro con tu acción y un conjuro diferente con tu acción adicional en el mismo turno, excepto si la acción principal se usa para lanzar un truco.", + "Para más detalles, consulta la acción Magia." + ] + }, + { + title: "Usar hab. clase", + icon: "embrassed-energy", + subtitle: "Algunos rasgos usan acciones adicionales", + description: "Usa un rasgo de clase que requiera acción adicional", + reference: "Consulta la página de tu clase para más información.", + bullets: [] + } +]; + +if (typeof current_lang === 'undefined') { + var lang_override = localStorage.getItem('quickref_lang'); + var nav_lang = navigator.language ? navigator.language.slice(0, 2) : 'en'; + var current_lang = lang_override || nav_lang; +} +var data_bonusaction = current_lang === 'pt' ? data_bonusaction_pt : (current_lang === 'es' ? data_bonusaction_es : data_bonusaction_en); diff --git a/js/data_condition.js b/js/data_condition.js index 43324f6a..3b4a3fba 100644 --- a/js/data_condition.js +++ b/js/data_condition.js @@ -1,4 +1,4 @@ -data_condition = [ +var data_condition_en = [ { title: "Blinded", icon: "one-eyed", @@ -35,14 +35,14 @@ data_condition = [ { title: "Exhaustion", icon: "crawl", - subtitle: "You are exhausted", - description: "Exhaustion is measured in six levels", - reference: "PHB, pg. 291.", + subtitle: "Cumulative penalties", + description: "Exhaustion is measured in 6 levels", + reference: "PHB 2024", bullets: [ - "
LevelEffect
1Disadvantage on ability checks
2Speed halved
3Disadvantage on attack rolls and saving throws
4Hit point maximum halved
5Speed reduced to 0
6Death
", - "You suffer the effect of your current level of exhaustion as well as all lower levels.", - "Finishing a long rest reduces your exhaustion level by 1, provided that you have also had some food and drink.", - "Also, being raised from the dead reduces a creature’s exhaustion level by 1." + "Levels 1-5: You suffer a penalty to your d20 Tests (ability checks, attack rolls, saving throws) and Spell Save DCs equal to -2 times your exhaustion level.", + "Your Speed is reduced by 5 feet (1.5m) times your exhaustion level.", + "Level 6: You die.", + "Finishing a Long Rest reduces your exhaustion level by 1." ] }, { @@ -63,9 +63,9 @@ data_condition = [ description: "You are grappled", reference: "PHB, pg. 290.", bullets: [ - "Your speed becomes 0, and you can't benefit from any bonus to your speed.", - "The condition ends if your grappler is incapacitated.", - "The condition also ends if you are removed from the reach of your grappler." + "Your speed is 0.", + "You have disadvantage on attack rolls against any target other than the grappler.", + "The condition ends if your grappler is incapacitated, or if you are moved out of their reach." ] }, { @@ -73,8 +73,12 @@ data_condition = [ icon: "internal-injury", subtitle: "You can't take actions or reactions", description: "You can't take actions or reactions", - reference: "PHB, pg. 290.", + reference: "PHB 2024", bullets: [ + "You can't take any actions, bonus actions, or reactions.", + "Your concentration is broken.", + "You automatically fail Strength and Dexterity saving throws.", + "You can't speak." ] }, { @@ -84,10 +88,10 @@ data_condition = [ description: "You can't be seen without the aid of magic or a special sense", reference: "PHB, pg. 291.", bullets: [ - "For the purpose of hiding, you are heavily obscured.", - "You can still be detected by any noise you make or tracks you leave.", + "You aren't visible, so you are Heavily Obscured.", "You have advantage on attack rolls.", - "Attack rolls against you have disadvantage." + "Attack rolls against you have disadvantage.", + "You can still be detected by noise or tracks." ] }, { @@ -98,7 +102,7 @@ data_condition = [ bullets: [ "You are incapacitated and can't move or speak.", "Attack rolls against you have advantage.", - "Any attack that hits you is a critical hit if the attacker is within 5 feet of you.", + "Any attack that hits you is a critical hit if the attacker is within 5 feet (1.5m) of you.", "You automatically fail Strength and Dexterity saving throws." ] }, @@ -134,9 +138,9 @@ data_condition = [ description: "You are prone", reference: "PHB, pg. 292.", bullets: [ - "Your only movement option is to crawl, unless you stand up.", + "Your only movement options are to crawl or stand up.", "You have disadvantage on attack rolls.", - "Attack rolls against you have advantage if the attacker is within 5 feet of you, otherwise the attack roll has disadvantage." + "Attack rolls against you have advantage if the attacker is within 5 feet (1.5m) of you, otherwise they have disadvantage." ] }, { @@ -171,11 +175,11 @@ data_condition = [ description: "You are unconscious", reference: "PHB, pg. 292.", bullets: [ - "You are incapacitated, can't move or speak, and are unaware of your surroundings.", + "You have the Incapacitated condition and are unaware of your surroundings.", "You drop whatever you're holding and fall prone.", "Attack rolls against you have advantage.", - "Any attack that hits you is a critical hit if the attacker is within 5 feet of you.", - "You automatically fail Strength and Dexterity saving throws.", + "Any attack that hits you is a critical hit if the attacker is within 5 feet (1.5m) of you.", + "You automatically fail Strength and Dexterity saving throws." ] }, { @@ -198,3 +202,48 @@ data_condition = [ ] } ] + +var data_condition_pt = [ + { title: "Cego", icon: "one-eyed", subtitle: "Não pode ver", description: "Você não consegue ver nada", reference: "LDJ 2024", bullets: ["Falha automática em testes que exigem visão.", "Desvantagem em ataques. Ataques contra você têm Vantagem."] }, + { title: "Enfeitiçado", icon: "smitten", subtitle: "Controlado ou cativado", description: "Você foi enfeitiçado", reference: "LDJ 2024", bullets: ["Não pode atacar ou alvejar o encantador.", "Encantador tem Vantagem em interações sociais com você."] }, + { title: "Surdo", icon: "elf-ear", subtitle: "Não pode ouvir", description: "Você não consegue ouvir", reference: "LDJ 2024", bullets: ["Falha automática em testes que exigem audição."] }, + { title: "Exaustão", icon: "crawl", subtitle: "Penalidades cumulativas", description: "Fadiga dividida em 6 níveis", reference: "LDJ 2024", bullets: ["Níveis 1-5: Penalidade em testes de d20 e CD de Magias igual a -2 vezes o seu nível.", "Deslocamento reduz em 1,5m (5ft) vezes o nível.", "Nível 6: Você morre.", "Descanso Longo reduz o nível em 1."] }, + { title: "Amedrontado", icon: "sharp-smile", subtitle: "Cheio de medo", description: "Assustado pela fonte de medo", reference: "LDJ 2024", bullets: ["Desvantagem em testes e ataques enquanto ver a fonte.", "Não pode se mover voluntariamente na direção da fonte."] }, + { title: "Agarrado", icon: "grab", subtitle: "Preso no lugar", description: "Alguém ou algo te agarrou", reference: "LDJ 2024", bullets: ["Deslocamento cai para 0.", "Desvantagem em ataques contra outros que não quem o agarrou.", "Termina se quem agarra ficar incapacitado ou você sair do alcance."] }, + { title: "Incapacitado", icon: "internal-injury", subtitle: "Sem ações ou reações", description: "Não pode agir", reference: "LDJ 2024", bullets: ["Não pode usar ações ou reações.", "Concentração é quebrada.", "Falha em testes de resistência de For e Des.", "Você não pode falar."] }, + { title: "Invisível", icon: "invisible", subtitle: "Você não pode ser visto", description: "Você não pode ser visto", reference: "LDJ 2024", bullets: ["Considerado Fortemente Obscurecido.", "Vantagem em ataques. Ataques contra você têm Desvantagem."] }, + { title: "Paralisado", icon: "internal-injury", subtitle: "Paralisado fisicamente", description: "Não pode se mover ou agir", reference: "LDJ 2024", bullets: ["Incapacitado, não fala ou anda.", "Ataques contra você têm Vantagem.", "Acertos num raio de 1,5m (5ft) são Críticos.", "Falha For/Des."] }, + { title: "Petrificado", icon: "stone-pile", subtitle: "Transformado em pedra", description: "Transformado em pedra/sólido", reference: "LDJ 2024", bullets: ["Incapacitado. Resistência a todo o dano.", "Imune a veneno e doença.", "Peso x10. Falha For/Des."] }, + { title: "Envenenado", icon: "deathcab", subtitle: "Envenenado", description: "Você está envenenado", reference: "LDJ 2024", bullets: ["Desvantagem nas jogadas de ataque e testes de atributo."] }, + { title: "Caído", icon: "crawl", subtitle: "Você caiu", description: "Você está deitado no chão", reference: "LDJ 2024", bullets: ["Opções de mover: rastejar ou levantar.", "Ataques têm Desvantagem.", "Ataques contra você têm Vantagem (se 1,5m/5ft de dist) ou Desvantagem (se mais longe)."] }, + { title: "Impedido", icon: "imprisoned", subtitle: "Preso", description: "Você está preso", reference: "LDJ 2024", bullets: ["Deslocamento 0.", "Desvantagem em ataques. Ataques contra você têm Vantagem.", "Desvantagem em testes de Des."] }, + { title: "Atordoado", icon: "internal-injury", subtitle: "Incapacitado temporário", description: "Atordoado e aturdido", reference: "LDJ 2024", bullets: ["Incapacitado, não pode se mover.", "Ataques contra você têm Vantagem. Falha For/Des."] }, + { title: "Inconsciente", icon: "coma", subtitle: "Sem consciência", description: "Desmaiado e indefeso", reference: "LDJ 2024", bullets: ["Incapacitado, larga o que está segurando e cai Caído.", "Ataques contra você têm Vantagem.", "Acertos num raio de 1,5m (5ft) são Críticos. Falha For/Des."] }, + { title: "Morrendo", icon: "dead-head", subtitle: "Zero Pontos de Vida", description: "Fazendo testes contra a morte", reference: "LDJ 2024", bullets: ["Faz testes de morte no início do turno.", "3 Sucessos = Estável. 3 Falhas = Morte.", "Rolar 20 cura 1 PV. 1 conta como 2 falhas."] } +]; + +var data_condition_es = [ + { title: "Ciego", icon: "one-eyed", subtitle: "No puedes ver", description: "No puedes ver nada", reference: "PHB 2024", bullets: ["Fallas en pruebas que requieran vista.", "Tus ataques con Desventaja. Ataques contra ti con Ventaja."] }, + { title: "Hechizado", icon: "smitten", subtitle: "Cautivado", description: "Has sido encantado", reference: "PHB 2024", bullets: ["No puedes atacar al encantador.", "El encantador tiene Ventaja en tiradas sociales contra ti."] }, + { title: "Sordo", icon: "elf-ear", subtitle: "No puedes oír", description: "No puedes oír nada", reference: "PHB 2024", bullets: ["Fallas toda prueba que requiera audición."] }, + { title: "Agotamiento", icon: "crawl", subtitle: "Penalizaciones por fatiga", description: "Exhausto (Niveles del 1 al 6)", reference: "PHB 2024", bullets: ["Niveles 1-5: Penalizador de -2 x Nivel en Pruebas de d20 y CD de Conjuros.", "Tu velocidad se reduce 5 pies (1,5m) x Nivel.", "Nivel 6: Mueres.", "El descanso largo reduce 1 nivel."] }, + { title: "Asustado", icon: "sharp-smile", subtitle: "Aterrorizado", description: "Aterrorizado de una fuente", reference: "PHB 2024", bullets: ["Desventaja en pruebas y ataques mientras veas la fuente.", "No puedes acercarte a la fuente."] }, + { title: "Agarrado", icon: "grab", subtitle: "Atrapado", description: "Alguien te sujeta", reference: "PHB 2024", bullets: ["Velocidad de 0.", "Desventaja al atacar a criaturas distintas al que te agarra.", "Termina si te sacan de su alcance o el agarre se incapacita."] }, + { title: "Incapacitado", icon: "internal-injury", subtitle: "Sin acciones", description: "No puedes actuar", reference: "PHB 2024", bullets: ["No puedes realizar acciones o reacciones.", "Pierdes la concentración. Fallas salvaciones Fue/Des.", "No puedes hablar."] }, + { title: "Invisible", icon: "invisible", subtitle: "No pueden verte", description: "No puedes ser visto", reference: "PHB 2024", bullets: ["Cuentas como Fuertemente oscurecido.", "Ventaja en tus ataques. Ataques contra ti con Desventaja."] }, + { title: "Paralizado", icon: "internal-injury", subtitle: "Congelado físicamente", description: "No puedes moverte o actuar", reference: "PHB 2024", bullets: ["Incapacitado.", "Ataques contra ti con Ventaja.", "Impactos a 5 pies (1,5m) son críticos. Fallas Fue/Des."] }, + { title: "Petrificado", icon: "stone-pile", subtitle: "Convertido en piedra", description: "Transformado en material sólido", reference: "PHB 2024", bullets: ["Incapacitado. Resistencia a todo el daño.", "Inmune a veneno/enfermedad. Peso x10. Fallas Fue/Des."] }, + { title: "Envenenado", icon: "deathcab", subtitle: "Intoxicado", description: "Sufres el efecto de veneno", reference: "PHB 2024", bullets: ["Desventaja en tiradas de ataque y pruebas de característica."] }, + { title: "Derribado", icon: "crawl", subtitle: "En el suelo", description: "Has caído al suelo", reference: "PHB 2024", bullets: ["Solo puedes arrastrarte o levantarte.", "Tus ataques con Desventaja.", "Ataques contra ti con Ventaja a 5 pies (1,5m) o Desventaja si es de más lejos."] }, + { title: "Apresado", icon: "imprisoned", subtitle: "Atado firmemente", description: "Limitado para moverte", reference: "PHB 2024", bullets: ["Velocidad de 0.", "Desventaja en tus ataques y salvaciones Des.", "Ataques contra ti con Ventaja."] }, + { title: "Aturdido", icon: "internal-injury", subtitle: "Incapacitado temporal", description: "Conmocionado", reference: "PHB 2024", bullets: ["Incapacitado, no te mueves.", "Ataques contra ti con Ventaja. Fallas Fue/Des."] }, + { title: "Inconsciente", icon: "coma", subtitle: "Sin sentido", description: "Desmayado", reference: "PHB 2024", bullets: ["Incapacitado. Sueltas lo que tengas y quedas Derribado.", "Ataques contra ti con Ventaja.", "Impactos a 5 pies (1,5m) son críticos. Fallas Fue/Des."] }, + { title: "Muriendo", icon: "dead-head", subtitle: "A las puertas de la muerte", description: "Cero Puntos de Golpe", reference: "PHB 2024", bullets: ["Haces tiradas de muerte cada turno.", "3 Éxitos = Estable. 3 Fallos = Muerte.", "Sacar un 20 cura 1 PG. Sacar 1 cuenta como 2 fallos."] } +]; + +if (typeof current_lang === 'undefined') { + var lang_override = localStorage.getItem('quickref_lang'); + var nav_lang = navigator.language ? navigator.language.slice(0, 2) : 'en'; + var current_lang = lang_override || nav_lang; +} +var data_condition = current_lang === 'pt' ? data_condition_pt : (current_lang === 'es' ? data_condition_es : data_condition_en); diff --git a/js/data_environment.js b/js/data_environment.js index 83b74ef3..df72d489 100644 --- a/js/data_environment.js +++ b/js/data_environment.js @@ -1,4 +1,4 @@ -data_environment_obscurance = [ +var data_environment_obscurance_en = [ { title: "Lightly obscured", icon: "bleeding-eye", @@ -21,7 +21,7 @@ data_environment_obscurance = [ } ] -data_environment_light = [ +var data_environment_light_en = [ { title: "Bright light", icon: "star-pupil", @@ -57,7 +57,7 @@ data_environment_light = [ } ] -data_environment_vision = [ +var data_environment_vision_en = [ { title: "Blindsight", icon: "one-eyed", @@ -93,7 +93,7 @@ data_environment_vision = [ } ] -data_environment_cover = [ +var data_environment_cover_en = [ { title: "Half cover", icon: "broken-shield", @@ -130,3 +130,52 @@ data_environment_cover = [ ] } ] + +var data_environment_obscurance_pt = [ + { title: "Levemente obscurecido", icon: "bleeding-eye", subtitle: "Desvantagem em Percepção", description: "Penumbra, neblina, folhagem", reference: "LDJ 2024", bullets: ["Desvantagem em testes de Sabedoria (Percepção) que dependem de visão."] }, + { title: "Fortemente obscurecido", icon: "lightning-tear", subtitle: "Efetivamente cego", description: "Escuridão, neblina opaca", reference: "LDJ 2024", bullets: ["Uma criatura em uma área fortemente obscurecida sofre da condição Cego."] } +]; +var data_environment_light_pt = [ + { title: "Luz plena", icon: "star-pupil", subtitle: "Visão normal", description: "A luz plena permite visão normal", reference: "LDJ 2024", bullets: ["Fornecida por dias abertos, fogueiras, tochas e fontes de luz."] }, + { title: "Penumbra", icon: "semi-closed-eye", subtitle: "Levemente obscurecido", description: "Também chamada de sombras", reference: "LDJ 2024", bullets: ["Cria uma área levemente obscurecida.", "Ocorre no alvorecer ou crepúsculo, ou na fronteira entre luz plena e escuridão."] }, + { title: "Escuridão", icon: "worried-eyes", subtitle: "Fortemente obscurecido", description: "Cria uma área fortemente obscurecida", reference: "LDJ 2024", bullets: ["Cria uma área fortemente obscurecida.", "Ocorre a noite, em masmorras sem luz, ou áreas de magia negra."] } +]; +var data_environment_vision_pt = [ + { title: "Sentido Cego", icon: "one-eyed", subtitle: "Perceber sem visão", description: "Sentir arredores sem visão", reference: "LDJ 2024", bullets: ["Percebe perfeitamente nos arredores em um raio fixo."] }, + { title: "Visão no Escuro", icon: "semi-closed-eye", subtitle: "Visão noturna", description: "Visão avançada em penumbra ou escuridão", reference: "LDJ 2024", bullets: ["Vê escuridão como se fosse penumbra (tons de cinza).", "Penumbra conta como Luz plena no raio estipulado."] }, + { title: "Visão Verdadeira", icon: "eye-shield", subtitle: "Enxergar a verdade", description: "Visão total independentemente do ambiente", reference: "LDJ 2024", bullets: ["Vê em escuridão normal ou mágica, nota seres invisíveis, e percebe transmorfo e ilusões na sua forma real.", "Também enxerga o Plano Etéreo."] } +]; +var data_environment_cover_pt = [ + { title: "Meia cobertura", icon: "broken-shield", subtitle: "Baixa parede ou criaturas", description: "Metade do corpo escondido", reference: "LDJ 2024", bullets: ["Recebe bônus de +2 na CA e nos testes de resistência de Destreza."] }, + { title: "Três quartos de cobertura", icon: "cracked-shield", subtitle: "Árvores ou janelas estreitas", description: "3/4 do corpo protegido", reference: "LDJ 2024", bullets: ["Recebe bônus de +5 na CA e nos testes de resistência de Destreza."] }, + { title: "Cobertura total", icon: "shield", subtitle: "Totalmente oculto", description: "Não pode ser alvejado", reference: "LDJ 2024", bullets: ["Não pode ser o alvo direto de magias ou ataques."] } +]; +var data_environment_obscurance_es = [ + { title: "Ligeramente oscurecido", icon: "bleeding-eye", subtitle: "Desventaja en Percepción", description: "Luz tenue, niebla ligera", reference: "PHB 2024", bullets: ["Desventaja en pruebas de Sabiduría (Percepción) basadas en la vista."] }, + { title: "Fuertemente oscurecido", icon: "lightning-tear", subtitle: "Efectivamente ciego", description: "Oscuridad, niebla espesa", reference: "PHB 2024", bullets: ["Una criatura aquí cuenta con la condición de Ciego."] } +]; +var data_environment_light_es = [ + { title: "Luz brillante", icon: "star-pupil", subtitle: "Visión normal", description: "Permite ver todo con normalidad", reference: "PHB 2024", bullets: ["Provista por el día, antorchas y fogatas."] }, + { title: "Luz tenue", icon: "semi-closed-eye", subtitle: "Ligeramente oscurecido", description: "También llamadas penumbras", reference: "PHB 2024", bullets: ["Crea un área Ligeramente oscurecida.", "Límites entre luces y amaneceres."] }, + { title: "Oscuridad", icon: "worried-eyes", subtitle: "Fuertemente oscurecido", description: "Total falta de luz", reference: "PHB 2024", bullets: ["Crea un área Fuertemente oscurecida.", "Noches de exteriores, calabozos sin iluminación."] } +]; +var data_environment_vision_es = [ + { title: "Sentido Ciego", icon: "one-eyed", subtitle: "Percibir sin visión", description: "Sentir todo sin usar los ojos", reference: "PHB 2024", bullets: ["Ignoras efectos de luz si están a tu rango de Sentido Ciego."] }, + { title: "Visión Oscuridad", icon: "semi-closed-eye", subtitle: "Visión nocturna", description: "Ver mejor en lo oscuro", reference: "PHB 2024", bullets: ["Puedes ver en Oscuridad como Luz tenue (en grises).", "La Luz tenue cuenta como Luz brillante."] }, + { title: "Visión Verdadera", icon: "eye-shield", subtitle: "Ver la verdad", description: "Visión sin engaños", reference: "PHB 2024", bullets: ["Ves a los invisibles, en oscuridad mágica, ilusiones y a través de transformaciones mágicas.", "Además ves en el Plano Etéreo."] } +]; +var data_environment_cover_es = [ + { title: "Media cobertura", icon: "broken-shield", subtitle: "Paredes bajas o personas", description: "Muro que tapa a la mitad", reference: "PHB 2024", bullets: ["Bono de +2 a tu CA y salvaciones de Destreza."] }, + { title: "Tres cuartos de cobertura", icon: "cracked-shield", subtitle: "Árboles o murallas grandes", description: "Te tapa el 75% del cuerpo", reference: "PHB 2024", bullets: ["Bono de +5 a tu CA y salvaciones de Destreza."] }, + { title: "Cobertura total", icon: "shield", subtitle: "Oculto completamente", description: "No pueden verte", reference: "PHB 2024", bullets: ["No puedes ser objetivo directo de un ataque o conjuro."] } +]; + +if (typeof current_lang === 'undefined') { + var lang_override = localStorage.getItem('quickref_lang'); + var nav_lang = navigator.language ? navigator.language.slice(0, 2) : 'en'; + var current_lang = lang_override || nav_lang; +} +var data_environment_obscurance = current_lang === 'pt' ? data_environment_obscurance_pt : (current_lang === 'es' ? data_environment_obscurance_es : data_environment_obscurance_en); +var data_environment_light = current_lang === 'pt' ? data_environment_light_pt : (current_lang === 'es' ? data_environment_light_es : data_environment_light_en); +var data_environment_vision = current_lang === 'pt' ? data_environment_vision_pt : (current_lang === 'es' ? data_environment_vision_es : data_environment_vision_en); +var data_environment_cover = current_lang === 'pt' ? data_environment_cover_pt : (current_lang === 'es' ? data_environment_cover_es : data_environment_cover_en); diff --git a/js/data_movement.js b/js/data_movement.js index ca05ea29..e06ca19e 100644 --- a/js/data_movement.js +++ b/js/data_movement.js @@ -1,9 +1,9 @@ -data_movement = [ +var data_movement_en = [ { title: "Move", icon: "run", - subtitle: "Cost: 5ft per 5ft", - description: "Movement cost: 5ft per 5ft moved", + subtitle: "Cost: 5ft (1.5m) per 5ft (1.5m)", + description: "Movement cost: 5ft (1.5m) per 5ft (1.5m) moved", reference: "PHB, pg. 190.", bullets: [ "If you have more than one speed, such as your walking speed and a flying speed, you can switch back and forth between your speeds during your move. Whenever you switch, subtract the distance you've already moved from the new speed.", @@ -16,8 +16,8 @@ data_movement = [ { title: "Climb", icon: "crags", - subtitle: "Cost: 10ft per 5ft", - description: "Movement cost: 10ft per 5ft climbed", + subtitle: "Cost: 10ft (3m) per 5ft (1.5m)", + description: "Movement cost: 10ft (3m) per 5ft (1.5m) climbed", reference: "PHB, pg. 182.", bullets: [ "May involve a Strength (Athletics) check if the climb is difficult" @@ -26,8 +26,8 @@ data_movement = [ { title: "Swim", icon: "at-sea", - subtitle: "Cost: 10ft per 5ft", - description: "Movement cost: 10ft per 5ft swum", + subtitle: "Cost: 10ft (3m) per 5ft (1.5m)", + description: "Movement cost: 10ft (3m) per 5ft (1.5m) swum", reference: "PHB, pg. 182.", bullets: [ "May involve a Strength (Athletics) check if the swim is difficult" @@ -36,8 +36,8 @@ data_movement = [ { title: "Drop prone", icon: "falling", - subtitle: "Cost: 0ft", - description: "Movement cost: 0ft (free)", + subtitle: "Cost: 0ft (0m)", + description: "Movement cost: 0ft (0m) (free)", reference: "PHB, pgs. 190-191,292.", bullets: [ "You can drop prone without using any of your speed", @@ -48,8 +48,8 @@ data_movement = [ { title: "Crawl", icon: "crawl", - subtitle: "Cost: 10ft per 5ft", - description: "Movement cost: 10ft per 5ft crawled", + subtitle: "Cost: 10ft (3m) per 5ft (1.5m)", + description: "Movement cost: 10ft (3m) per 5ft (1.5m) crawled", reference: "PHB, pg. 182.", bullets: [ @@ -62,18 +62,18 @@ data_movement = [ description: "Movement cost: half of your speed", reference: "PHB, pg. 190-191.", bullets: [ - "You can't stand up if you don't have enough movement left or if your speed is 0" + "You can't stand up if your speed is 0" ] }, { title: "High jump", icon: "wingfoot", - subtitle: "Cost: 5ft per 5ft", - description: "Movement cost: 5ft per 5ft jumped", + subtitle: "Cost: 5ft (1.5m) per 5ft (1.5m)", + description: "Movement cost: 5ft (1.5m) per 5ft (1.5m) jumped", reference: "PHB, pg. 182.", bullets: [ - "You leap into the air a number of feet equal to 3 + your Strength modifier if you move at least 10 feet on foot immediately before the jump.", + "You leap into the air a number of feet equal to 3 + your Strength modifier if you move at least 10 feet (3m) on foot immediately before the jump.", "When you make a standing high jump, you can jump only half that distance.", "You can extend your arms half your height above yourself during the jump.", "In some circumstances, your DM might allow you to make a Strength (Athletics) check to jump higher than you normally can." @@ -82,11 +82,11 @@ data_movement = [ { title: "Long jump", icon: "wingfoot", - subtitle: "Cost: 5ft per 5ft", - description: "Movement cost: 5ft per 5ft jumped", + subtitle: "Cost: 5ft (1.5m) per 5ft (1.5m)", + description: "Movement cost: 5ft (1.5m) per 5ft (1.5m) jumped", reference: "PHB, pg. 182.", bullets: [ - "You cover a number of feet up to your Strength score if you move at least 10 feet on foot immediately before the jump.", + "You cover a number of feet up to your Strength score if you move at least 10 feet (3m) on foot immediately before the jump.", "When you make a standing long jump, you can leap only half that distance", "May involve a DC 10 Strength (Athletics) check to clear a low obstacle (no taller than a quarter of the jump's distance). You hit the obstacle on a failed check.", "May involve a DC 10 Dexterity (Acrobatics) check to land on your feet in difficult terrain. You land prone on a failed check." @@ -104,9 +104,9 @@ data_movement = [ { title: "Difficult terrain", icon: "stone-pile", - subtitle: "Cost modifier: +5ft per 5ft", + subtitle: "Cost modifier: +5ft (1.5m) per 5ft (1.5m)", reference: "PHB, pg. 182.", - description: "Moving in difficult terrain costs an additional 5ft per 5ft of movement", + description: "Moving in difficult terrain costs an additional 5ft (1.5m) per 5ft (1.5m) of movement", bullets: [ ] }, @@ -117,8 +117,40 @@ data_movement = [ description: "Drag or carry the grappled creature with you", reference: "PHB, pg. 195.", bullets: [ - "If you move while grappling another creature, your speed is halved, unless the creature is two or more sizes smaller than you.", - "See the attack action for how to grapple a creature." + "Your speed is halved unless the creature is Tiny or 2 or more sizes smaller than you." ] } ] + +var data_movement_pt = [ + { title: "Mover", icon: "run", subtitle: "Custo: 1,5m (5ft) por 1,5m (5ft)", description: "Custo de movimento: 1,5m (5ft) por 1,5m (5ft)", reference: "LDJ 2024", bullets: ["Você pode se mover pelo espaço de criaturas não hostis.", "Pelo espaço de hostis apenas se forem 2 tamanhos maiores ou menores.", "O espaço de outra criatura conta como terreno difícil."] }, + { title: "Escalar", icon: "crags", subtitle: "Custo: 3m (10ft) por 1,5m (5ft)", description: "Custo de movimento: 3m (10ft) por 1,5m (5ft)", reference: "LDJ 2024", bullets: ["Sem custo extra se possuir deslocamento natural de escalada."] }, + { title: "Nadar", icon: "at-sea", subtitle: "Custo: 3m (10ft) por 1,5m (5ft)", description: "Custo de movimento: 3m (10ft) por 1,5m (5ft)", reference: "LDJ 2024", bullets: ["Sem custo extra se possuir deslocamento natural de natação."] }, + { title: "Cair no chão", icon: "falling", subtitle: "Custo: 0m (0ft)", description: "Custo de movimento: 0m (0ft)", reference: "LDJ 2024", bullets: ["Você pode se jogar no chão sem gastar seu deslocamento."] }, + { title: "Rastejar", icon: "crawl", subtitle: "Custo: 3m (10ft) por 1,5m (5ft)", description: "Custo de movimento: 3m (10ft) por 1,5m (5ft)", reference: "LDJ 2024", bullets: ["Você precisa estar na condição Caído para rastejar."] }, + { title: "Levantar", icon: "strong", subtitle: "Custo: metade do mov.", description: "Custo de movimento: metade do seu total", reference: "LDJ 2024", bullets: ["Você não pode se levantar se o seu deslocamento atual for 0."] }, + { title: "Salto em altura", icon: "wingfoot", subtitle: "Custo: 1,5m (5ft) por 1,5m (5ft)", description: "Custo de movimento: 1,5m (5ft) por 1,5m (5ft)", reference: "LDJ 2024", bullets: ["Pula cerca de 1m (3ft) + 0,3m (1ft) x Modificador de Força (correndo 3m (10ft) antes).", "Pula metade da distância se fizer isso parado."] }, + { title: "Salto em dist.", icon: "wingfoot", subtitle: "Custo: 1,5m (5ft) por 1,5m (5ft)", description: "Custo de movimento: 1,5m (5ft) por 1,5m (5ft)", reference: "LDJ 2024", bullets: ["Pula cerca de 0,3m (1ft) x Valor de Força (correndo 3m (10ft) antes).", "Pula metade da distância se fizer isso parado."] }, + { title: "Terreno difícil", icon: "stone-pile", subtitle: "Modificador: +1,5m (5ft)", description: "Custa 1,5m (5ft) adicionais por casa", reference: "LDJ 2024", bullets: [] }, + { title: "Mover agarrado", icon: "grab", subtitle: "Mod: mov. pela metade", description: "Arrastar criatura que você agarrou", reference: "LDJ 2024", bullets: ["Deslocamento cai pela metade, a não ser que a criatura seja Minúscula ou 2+ tamanhos menor."] } +]; + +var data_movement_es = [ + { title: "Mover", icon: "run", subtitle: "Costo: 5 pies (1,5m) por 5 pies (1,5m)", description: "Costo de movimiento", reference: "PHB 2024", bullets: ["Puedes moverte por el espacio de criaturas no hostiles.", "Por el de hostiles solo si son 2 tamaños mayores o menores.", "El espacio de otra criatura es siempre terreno difícil."] }, + { title: "Escalar", icon: "crags", subtitle: "Costo: 10 pies (3m) por 5 pies (1,5m)", description: "Costo de movimiento escalar", reference: "PHB 2024", bullets: ["Sin costo extra si tienes velocidad de escalada."] }, + { title: "Nadar", icon: "at-sea", subtitle: "Costo: 10 pies (3m) por 5 pies (1,5m)", description: "Costo de movimiento nadar", reference: "PHB 2024", bullets: ["Sin costo extra si tienes velocidad de nado."] }, + { title: "Caer al suelo", icon: "falling", subtitle: "Costo: 0 pies (0m)", description: "Costo de movimiento", reference: "PHB 2024", bullets: ["Puedes tirarte al suelo sin gastar movimiento."] }, + { title: "Arrastrarse", icon: "crawl", subtitle: "Costo: 10 pies (3m) por 5 pies (1,5m)", description: "Costo de movimiento", reference: "PHB 2024", bullets: ["Debes estar con la condición de Derribado para arrastrarte."] }, + { title: "Levantarse", icon: "strong", subtitle: "Costo: mitad de vel.", description: "Costo de movimiento: mitad de tu total", reference: "PHB 2024", bullets: ["No puedes levantarte si tu velocidad actual es 0."] }, + { title: "Salto de altura", icon: "wingfoot", subtitle: "Costo: 5 pies (1,5m) por 5 pies (1,5m)", description: "Costo de salto alto", reference: "PHB 2024", bullets: ["Saltas 3 pies (1m) + tu Modificador de Fuerza en pies (con 10 pies (3m) de carrera).", "Mitad de distancia si saltas desde posición estática."] }, + { title: "Salto de long.", icon: "wingfoot", subtitle: "Costo: 5 pies (1,5m) por 5 pies (1,5m)", description: "Costo de salto largo", reference: "PHB 2024", bullets: ["Saltas tu Puntuación de Fuerza en pies (con 10 pies (3m) de carrera).", "Mitad de distancia si saltas desde posición estática."] }, + { title: "Terreno difícil", icon: "stone-pile", subtitle: "Modificador: +5 pies (1,5m)", description: "Cuesta 5 pies (1,5m) adicionales", reference: "PHB 2024", bullets: [] }, + { title: "Mover agarrado", icon: "grab", subtitle: "Modificador: mitad vel.", description: "Arrastrar una criatura agarrada", reference: "PHB 2024", bullets: ["La velocidad se reduce a la mitad, salvo que la criatura sea Diminuta o 2 tamaños menor."] } +]; + +if (typeof current_lang === 'undefined') { + var lang_override = localStorage.getItem('quickref_lang'); + var nav_lang = navigator.language ? navigator.language.slice(0, 2) : 'en'; + var current_lang = lang_override || nav_lang; +} +var data_movement = current_lang === 'pt' ? data_movement_pt : (current_lang === 'es' ? data_movement_es : data_movement_en); diff --git a/js/data_reaction.js b/js/data_reaction.js index d4be17b4..209dcc5e 100644 --- a/js/data_reaction.js +++ b/js/data_reaction.js @@ -1,10 +1,10 @@ -data_reaction = [ +var data_reaction_en = [ { title: "Opportunity attack", icon: "crossed-swords", subtitle: "Enemy leaves your reach", description: "You can rarely move heedlessly past your foes without putting yourself in danger", - reference: "PHB, pg. 195.", + reference: "PHB 2024", bullets: [ "Trigger: enemy creature you can see leaves your reach.", "Make one melee attack against the provoking creature.", @@ -17,20 +17,51 @@ data_reaction = [ icon: "stopwatch", subtitle: "Part of your Ready action", description: "Execute the reaction specified by your Ready action", - reference: "PHB, pg. 193.", + reference: "PHB 2024", bullets: [ "Trigger: specified by your Ready action." ] }, { - title: "Cast a spell", + title: "Magic", icon: "magic-swirl", subtitle: "Cast time of 1 reaction", description: "Cast a spell with a casting time of 1 reaction", - reference: "PHB, pg. 192.", + reference: "PHB 2024", bullets: [ "Trigger: specified by the spell.", - "For further details, see the Cast a spell action." + "For further details, see the Magic action." ] } ] + +var data_reaction_pt = [ + { title: "Ataque de oportunidade", icon: "crossed-swords", subtitle: "Inimigo sai do seu alcance", description: "Inimigos não podem te ignorar impunemente", reference: "LDJ 2024", bullets: ["Gatilho: uma criatura inimiga que você pode ver sai do seu alcance.", "Faça um ataque corpo-a-corpo contra a criatura que provocou.", "O ataque interrompe o movimento da criatura, ocorrendo logo antes dela sair do seu alcance.", "Criaturas não provocam ataques de oportunidade quando se teletransportam ou quando alguém ou algo as move sem usar o próprio movimento, ação ou reação."] }, + { title: "Ação preparada", icon: "stopwatch", subtitle: "Parte da sua ação Preparar", description: "Executa a reação especificada pela sua ação Preparar", reference: "LDJ 2024", bullets: ["Gatilho: especificado pela sua ação Preparar."] }, + { title: "Magia", icon: "magic-swirl", subtitle: "Tempo de conjuração: 1 reação", description: "Conjura magia de 1 reação", reference: "LDJ 2024", bullets: ["Gatilho: especificado pela magia.", "Para mais detalhes, veja a ação Magia."] } +]; + +var data_reaction_es = [ + { + title: "Ataque de oportunidad", + icon: "crossed-swords", + subtitle: "El enemigo sale de tu alcance", + description: "Rara vez puedes pasar junto a enemigos sin ponerte en peligro", + reference: "PHB 2024", + bullets: [ + "Detonante: una criatura enemiga que puedes ver sale de tu alcance.", + "Realiza un ataque cuerpo a cuerpo contra la criatura que lo provoca.", + "El ataque interrumpe el movimiento de la criatura, ocurriendo justo antes de que salga de tu alcance.", + "Las criaturas no provocan ataques de oportunidad al teletransportarse o cuando algo las mueve sin usar su movimiento, acción o reacción." + ] + }, + { title: "Acción preparada", icon: "stopwatch", subtitle: "Parte de tu acción Preparar", description: "Ejecuta la reacción especificada en Preparar", reference: "PHB 2024", bullets: ["Detonante: especificado por tu acción Preparar."] }, + { title: "Magia", icon: "magic-swirl", subtitle: "Tiempo de conjuro: 1 reacción", description: "Lanza conjuro de 1 reacción", reference: "PHB 2024", bullets: ["Detonante: especificado por el conjuro.", "Para más detalles, consulta la acción Magia."] } +]; + +if (typeof current_lang === 'undefined') { + var lang_override = localStorage.getItem('quickref_lang'); + var nav_lang = navigator.language ? navigator.language.slice(0, 2) : 'en'; + var current_lang = lang_override || nav_lang; +} +var data_reaction = current_lang === 'pt' ? data_reaction_pt : (current_lang === 'es' ? data_reaction_es : data_reaction_en); diff --git a/quickref.html b/quickref.html deleted file mode 100644 index 0213aa99..00000000 --- a/quickref.html +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - D&D 5e quick reference - - - - - - - - - - -
- - -
-
- Movement limited by movement speed -
-
-
- You can move at any time during your turn (before, after, or during actions). -
-
-
-
-
- - -
-
- Action 1/turn -
-
-
- You can also interact with one object or feature of the - environment for free. -
-
-
-
- - -
-
- Bonus action max. 1/turn -
-
-
- You can take a bonus action only when a special ability, spell, or feature - states that you can do something as a bonus action. -
-
-
-
- - -
-
- Reaction max. 1/round -
-
-
- A reaction is an instant response to a trigger of some kind, which - can occur on your turn or on someone else's. -
-
-
-
- - -
-
- Condition -
-
-
- Conditions alter your capabilities in a variety of ways, and can arise as a result of a spell, a class feature, a monster's attack, or other effect. -
-
-
-
- - -
-
- Environmental Effects -
-
-
- Effects that obscure vision can prove a significant hindrance to most adventuring tasks. -
-
-
- The presence or absence of light in an environment creates three categories of illumination. -
-
-
- Some creatures have extraordinary senses that allow them to perceive their environment. -
-
-
- Obstacles can provide cover during combat, making a target more difficult to harm. -
-
-
-
- -
- - - - - - - - - - - - - -