Add a recharge field to features and other applicable elements

Aperta
#992 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
50/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
json
Ambito
api, data

Direzione di ricerca

Esamina le strutture dei dati delle feature esistenti nel repository, probabilmente in una directory dei dati. Comprendi come vengono attualmente rappresentate le risorse. L’issue suggerisce di aggiungere un array 'resources' con campi come name, dependency, amount, recharge, recharge_amount e action. Inizia esaminando un file di feature di esempio (come 'ki') per vedere lo schema attuale. Determina dove aggiungere questo nuovo campo e come analizzare espressioni come '${level}'. Verifica se esistono già test per la validazione dei dati.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Many abilities in the game can only be cast a certain amount of times until they are recharged. A few examples, not all are SRD compliant but there is no detailed info here :

  • bardic-inspiration-1 : Charisma times per long rest
  • font-of-inspiration : transforms the long rest in short rest for the bardic inspirations
  • wand of magic missiles : 7 charges, 1d6+1 recharge per long rest
  • ki : level times per short rest
  • Druid Star Map: Guiding bolt : proficiency times per long rest
  • Githzerai psionics : Either Shield or Detect through 1 times per long rest

It would be great to have a way to represent the amount of times a feature or one of its element can be used. For example on "ki":

{
    "index": "ki", 
    ...
    "resources": [ {
          "name": "Ki Point",
          "dependency": {
               "name": "ki",
               "url": "...."
          },
           "amount": "${level}",
           "amount": "min(1, ${charisma})",    // Example of a representation of something that could be parsed and evaluated
           "recharge": "short-rest",
           "recharge_amount": "full",
           "action": "various"
     }]
}

Having such a representation would help building automated resource management summaries, with checkboxes or textfield to activate or reduce the available amount of resource of a particular ability.

The current workaround would be to parse the "desc" field and hope we have guessed the right information.

Lingua principale
TypeScript
Stelle
656
Fork
205
Merge medio
14h 21m
PR unite (30g)
76

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di 5e-bits/5e-srd-api

Tutte le issue di 5e-bits/5e-srd-api

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.