Skip to content

Commit

Permalink
Merge pull request #42 from lozanoje/Achtung
Browse files Browse the repository at this point in the history
Achtung Cthulhu 2d20
  • Loading branch information
cs96and authored Jan 31, 2024
2 parents 0d5d0e1 + 3922d88 commit 5b0cf93
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 5 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Damage Log is also compatible with the [Tabbed Chatlog](https://github.com/cswen

## System Compatibility
Damage Log is currently compatible with the following systems.
* Achtung! Cthulhu 2d20 (`ac2d20`)
* Age of Sigmar: Soulbound (`age-of-sigmar-soulbound`)
* Dungeons & Dragons v3.5 (`D35E`)
* Dungeons & Dragons 5th Edition (`dnd5e`)
Expand Down
4 changes: 4 additions & 0 deletions lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
"damage-log.swade.fatigue-name" : "Fatigue",
"damage-log.swade.bennies-name" : "Bennies",
"damage-log.tormenta20.pv-name" : "PV",
"damage-log.ac2d20.stress-name" : "Stress",
"damage-log.ac2d20.injuries-name" : "Injuries",
"damage-log.ac2d20.fortune-name" : "Fortune",
"damage-log.ac2d20.fatigue-name" : "Fatigue",

"damage-log.settings.use-tab": "Use separate damage log tab",
"damage-log.settings.use-tab-hint": "Use a separate tab for damage logs. If this is unchecked, damage logs will be sent to the default chatlog.",
Expand Down
72 changes: 72 additions & 0 deletions lang/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"damage-log.chat-tab-name": "Chat",
"damage-log.damage-log-tab-name": "Daño",

"damage-log.reset-visibility": "Reiniciar visibilidad",
"damage-log.undo-damage": "Deshacer daño",
"damage-log.undo-healing": "Deshacer curación",
"damage-log.redo-damage": "Reaplicar daño",
"damage-log.redo-healing": "Reaplicar curación",

"damage-log.damage-flavor-text": "Pierde {diff} {damageType} punto(s)",
"damage-log.healing-flavor-text": "Gana {diff} punto(s)",

"damage-log.old": "Antes",
"damage-log.new": "Ahora",
"damage-log.diff": "Dif.",

"damage-log.default.hp-name" : "PV",
"damage-log.default.temp-name" : "Temp",
"damage-log.age-of-sigmar-soulbound.toughness-name" : "Dureza",
"damage-log.D35E.vigor-name": "Vigor",
"damage-log.D35E.vigorTemp-name": "Temp",
"damage-log.D35E.wounds-name": "Heridas",
"damage-log.demonlord.corruption-name": "Corrupción",
"damage-log.demonlord.damage-name": "Daño",
"damage-log.demonlord.insanity-name": "Locura",
"damage-log.gurps.fp-name": "FP",
"damage-log.pf2e.sp-name": "Resistencia",
"damage-log.swade.wounds-name" : "Heridas",
"damage-log.swade.fatigue-name" : "Fatiga",
"damage-log.swade.bennies-name" : "Benis",
"damage-log.tormenta20.pv-name" : "PV",
"damage-log.ac2d20.stress-name" : "Estrés",
"damage-log.ac2d20.injuries-name" : "Heridas",
"damage-log.ac2d20.fortune-name" : "Fortuna",
"damage-log.ac2d20.fatigue-name" : "Fatiga",

"damage-log.settings.use-tab": "Usar pestaña separada",
"damage-log.settings.use-tab-hint": "Usar una pestaña separada para el registro de daños. Si no se habilita, el registro se volcará al char habitual.",

"damage-log.settings.allow-player-view": "Permitir a los jugadores ver el registro de daños",

"damage-log.settings.min-player-permission": "Permiso de actor mínimo",
"damage-log.settings.min-player-permission-hint": "Los jugadores solo podrán ver información de los actores para los que tienen este permiso o superior.",

"damage-log.settings.allow-player-undo": "Permitir deshacer/reaplicar daño",
"damage-log.settings.allow-player-undo-hint": "Si se habilita, los jugadores podrán deshacer/reaplicar el daño que ha sufrido un actor del que se tiene permiso de *propietario*.",

"damage-log.settings.show-limited-info": "Mostrar información limitada de daño a los jugadores",
"damage-log.settings.show-limited-info-hint": "Si se habilita, los jugadores pueden ver el daño de *todos* los actores, pero no la tabla ahora/dif./antes.",

"damage-log.settings.hide-healing-in-limited-info": "Ocultar la curación en la información limitada de daño",
"damage-log.settings.hide-healing-in-limited-info-hint": "Si se habilita, los jugadores no verán ningún mensaje de curación en la información limitada de daño.",

"damage-log.settings.clamp-to-max": "Restringir a máx PV",
"damage-log.settings.clamp-to-max-hint": "Cuando se deshaga o se reaplique daño/curación, evite que los PV del personaje sean mayores que el máximo.",

"damage-log.settings.clamp-to-min": "Restringir a mín PV",
"damage-log.settings.clamp-to-min-hint": "Cuando se deshaga o se reaplique daño/curación, evite que los PV del personaje sean menores que el mínimo.",

"damage-log.settings.none": "Ninguno",
"damage-log.settings.limited": "Limitado",
"damage-log.settings.observer": "Espectador",
"damage-log.settings.owner": "Propietario",

"damage-log.error.system-not-supported": "Damage Log | El sistema '{systemId}' no está soportado",
"damage-log.error.scene-id-missing": "Damage Log | No se encuentra Scene ID de damage log",
"damage-log.error.scene-deleted": "Damage Log | La escena '{scene}' no existe",
"damage-log.error.token-id-missing": "Damage Log | No se encuentra el Token ID de damage log",
"damage-log.error.token-deleted": "Damage Log | El token '{token}' no existe",
"damage-log.error.no-undo-user": "Damage Log | No se puede {undo} {damage}. O {user} o el GM no están conectados"
}
23 changes: 18 additions & 5 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,20 @@
}
],
"system": [
"ac2d20",
"age-of-sigmar-soulbound",
"archmage",
"D35E",
"demonlord",
"dnd5e",
"swade",
"tormenta20",
"gurps",
"pf1",
"pf2e",
"worldbuilding",
"archmage",
"shaper"
"shaper",
"sw5e",
"swade",
"tormenta20",
"worldbuilding"
],
"relationships": {
"requires": [
Expand All @@ -48,6 +52,10 @@
}
],
"systems": [
{
"id": "ac2d20",
"type": "system"
},
{
"id": "age-of-sigmar-soulbound",
"type": "system"
Expand Down Expand Up @@ -132,6 +140,11 @@
"lang": "cn",
"name": "中文(简体)",
"path": "lang/cn.json"
},
{
"lang": "es",
"name": "Español",
"path": "lang/es.json"
}
],
"url": "#{URL}#",
Expand Down
19 changes: 19 additions & 0 deletions scripts/damage-log.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,25 @@ class DamageLog {
* Location of HP attributes for supported systems.
*/
static SYSTEM_CONFIGS = {
ac2d20: {
fatigue: {
invert: true,
value: "fatigue"
},
fortune: {
invert: false,
value: "fortune.value"
},
injuries: {
invert: true,
value: "injuries.value"
},
stress: {
invert: true,
value: "stress.value",
max: "stress.max"
}
},
"age-of-sigmar-soulbound": {
toughness: {
value: "combat.health.toughness.value",
Expand Down

0 comments on commit 5b0cf93

Please sign in to comment.