User:NtCarlson
From bg3.wiki
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Current projects[edit | edit source]
Write a new damage template that replicates how damage is displayed by in-game tooltips
See Module:Damage display. For example:
Markup | Renders as |
---|---|
{{#invoke: Damage display | main | damage 1 = weapon | damage 2 = 2d8 | damage 2 type = Radiant | weapon = Hellfire Greataxe | str = 20 }} | Damage: 11~41 |
Key advantages over the old {{Damage info}} template:
- Better follows the design language of BG3
- Is more compact. Long damage info values could look horrible on mobile due to their unnecessary length.
- Is more general and can support arbitrary values like
1d8 + 1 + str mod + prof bonus
rather than separating out the damage modifier into another field. - Can smartly replace values like "Strength modifier" or "Normal weapon damage" with specific values when provided with additional context. This context is provided by {{Infobox character}} on character pages (for ability scores), and by {{Feature box}} when specifying the
weapon
optional parameter.
Update spells, actions, and weapon actions to new page generating template
Currently, spells, actions, and weapon actions each have their own page generating template which are near identical to each other and causes a maintenance headache. Any change to one template means it must be replicated thrice or subtle differences between the templates will accumulate. Reducing these to a single, consistent template with support for all three action types will make maintenance a lot easier.
Write new page generating template
- See {{Feature page}}
- Uses the new damage fields from Module:Damage display
- Has
type
field for specifyingspell
,action
, orweapon action
. The type specifies some defaults for fields likesummary
as well categorization.
Update spells to use new template
Update weapon actions to use new template
Update other actions to use new template
Update templates which query
spells
Cargo table to the new actions
table
This can only be done once all old page generating templates for actions are replaced.
Retrieved from "https://bg3.wiki/w/index.php?title=User:NtCarlson&oldid=276049"