-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combat automation specific attacks #196
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Publico comentarios que tenía pendientes de cuando revisé la pr, por si son de utilidad al extraer de la misma funcionalidades.
"macros.combat.dialog.rollResistanceButton.title": "Roll Resistance", | ||
"macros.combat.dialog.rollResistanceCriticButton.title": "Roll Critical Resist", | ||
"macros.combat.dialog.rollOppousedCheckButton.title": "Roll Characteristic", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Esta errata está en muchos de los sitios en los que aparece. Habría que arreglarlos todos. Por otro lado... sabemos si este es el nombre oficial de "tirada enfrentada" en inglés?
"macros.combat.dialog.rollOppousedCheckButton.title": "Roll Characteristic", | |
"macros.combat.dialog.rollOpposedCheckButton.title": "Roll Characteristic", |
"macros.mysticAct.dialog.spareActConfirm.body.title": "Do you want to make use of the Spare ACT?", | ||
"macros.mysticAct.dialog.spareActConfirm.title": "You still have {spareAct} ACT", | ||
"macros.mysticAct.dialog.message.title": "Accumulate <b>{act}</b> Zeon", | ||
"macros.dialog.error.multipleSelectedToken.title": "Only can select one token", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"macros.dialog.error.multipleSelectedToken.title": "Only can select one token", | |
"macros.dialog.error.multipleSelectedToken.title": "You must select a single token", |
"macros.combat.dialog.oppousedCheck.characteristic.strength.title": "Fuerza", | ||
"macros.combat.dialog.oppousedCheck.characteristic.agility.title": "Agilidad", | ||
"macros.combat.dialog.oppousedCheck.characteristic.dexterity.title": "Destreza", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ya existen traducciones para "Fuerza", "Destreza" y "Agilidad". Habría que usar esas (anima.ui.characteristics.[caracteristica]
) en lugar de crear nuevas.
"macros.mysticAct.dialog.button.spareAct.title": "ACT Excedente", | ||
"macros.mysticAct.dialog.button.releaseAct.title": "Liberar Zeon", | ||
"macros.mysticAct.dialog.button.withstandPain.title": "Resistir Dolor", | ||
"macros.mysticAct.dialog.spareActConfirm.body.title": "Quieres hacer uso del ACT Excedente", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
En general, en otras preguntas, cerramos el signo de interrogación pero no lo abrimos. Quizá en castellano deberíamos poner también el signo de abrir interrogación...
"macros.mysticAct.dialog.spareActConfirm.body.title": "Quieres hacer uso del ACT Excedente", | |
"macros.mysticAct.dialog.spareActConfirm.body.title": "¿Quieres hacer uso del ACT Excedente?", |
html.find('.toggle-effects-button').click(async e => { | ||
const { effectsItemId } = e.currentTarget.dataset; | ||
const item = this.actor.items.get(effectsItemId); | ||
const effects = this.actor.getEmbeddedCollection('ActiveEffect').contents; | ||
const relevantEffects = effects.filter(effect => | ||
effect.origin.endsWith(effectsItemId) | ||
); | ||
|
||
if (relevantEffects.length === 0) { | ||
return; | ||
} | ||
|
||
const newStatus = !item.system.activeEffect.enabled; | ||
|
||
for (const effect of relevantEffects) { | ||
await effect.update({ disabled: !newStatus }); | ||
} | ||
return item.update({ 'system.activeEffect.enabled': newStatus }); | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Es posible que este código sea viejo y se haya quedado ahí residual? Creo que no hay ningún elemento del html con la clase .toggle-effects-button
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Está en el groups.hbs... Se llega a usar en algún sitio?
distance | ||
); | ||
distance, | ||
specialPorpuseAttack); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
specialPorpuseAttack); | |
specialPurposeAttack); |
@@ -291,6 +333,7 @@ export class WSGMCombatManager extends WSCombatManager { | |||
const { projectile } = result.values; | |||
const { damage } = result.values; | |||
const { distance } = result.values; | |||
const { specialPorpuseAttack } = result.values; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const { specialPorpuseAttack } = result.values; | |
const { specialPurposeAttack } = result.values; |
distance | ||
) { | ||
distance, | ||
specialPorpuseAttack) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
specialPorpuseAttack) { | |
specialPurposeAttack) { |
@@ -336,7 +379,8 @@ export class WSGMCombatManager extends WSCombatManager { | |||
visible, | |||
projectile, | |||
damage, | |||
distance | |||
distance, | |||
specialPorpuseAttack |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
specialPorpuseAttack | |
specialPurposeAttack |
@@ -43,6 +47,16 @@ const getInitialData = (attacker, defender, options = {}) => { | |||
enable: combatDistance, | |||
check: false | |||
}, | |||
specialPorpuseAttacks: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
specialPorpuseAttacks: [ | |
specialPurposeAttacks: [ |
Como dijimos, en lugar de resolver los conflictos vamos a extraer las funcionalidades para re-implementarlas por separado en las próximas versiones. He publicado los comentarios de revisión por si sirven de utilidad al extraer las funcionalidades. |
Se implementan los ataques específicos al combate: Derribo, Inconciencia, Inutilizar, Desarmar, Presa, Ataque Apuntado.
Se añade la solicitud de tirada de dado al WebSocket del Combat Manager para las tiradas de Resistencia, y Crítico.
Se añade penalizadores de Dolor, Carencia física y Resistir el dolor para automatizar el efectos de los Críticos.
Se añade Macro para la carga de Zeon, preparar conjuro y liberar Zeon - mysticActMacro
Se añaden las metamagias y se automatizan las siguientes en el combate: