SL2 Analyzer
Read a FromSoftware .sl2 save and report what is in it
Loading...
Searching...
No Matches
sl2.render Namespace Reference

Functions

 stat_governs_for (game)
 Map a per-slot game id to its STAT_GOVERNS family (DSR and PtDE share DS1).
 
 stat_caps_for (game)
 Soft-cap reference for a per-slot game id (DSR and PtDE share DS1).
 

Variables

dict STAT_ABBR
 Short attribute headers for the table.
 
dict STAT_GOVERNS
 What each attribute governs, per game.
 
dict STAT_CAPS
 Soft-cap / per-level breakpoint reference per attribute, per game.
 

Detailed Description

Markdown rendering: one section per character, plus the shared tables.

Function Documentation

◆ stat_governs_for()

sl2.render.stat_governs_for (   game)

Map a per-slot game id to its STAT_GOVERNS family (DSR and PtDE share DS1).

Definition at line 88 of file render.py.

Referenced by sl2.render.stat_caps_for().

Here is the caller graph for this function:

◆ stat_caps_for()

sl2.render.stat_caps_for (   game)

Soft-cap reference for a per-slot game id (DSR and PtDE share DS1).

Definition at line 172 of file render.py.

References sl2.render.stat_caps_for(), and sl2.render.stat_governs_for().

Referenced by sl2.render.stat_caps_for().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ STAT_ABBR

dict sl2.render.STAT_ABBR
Initial value:
1= {
2 "Vigor": "VGR",
3 "Endurance": "END",
4 "Vitality": "VIT",
5 "Attunement": "ATN",
6 "Strength": "STR",
7 "Dexterity": "DEX",
8 "Adaptability": "ADP",
9 "Intelligence": "INT",
10 "Faith": "FTH",
11 "Resistance": "RES",
12 "Luck": "LCK",
13 "Mind": "MND",
14 "Arcane": "ARC",
15}

Short attribute headers for the table.

Definition at line 10 of file render.py.

◆ STAT_GOVERNS

dict sl2.render.STAT_GOVERNS

What each attribute governs, per game.

Static game-design fact — NOT read from the save and never a copied stat value, so it is true for any build and can never be the "wrong field" the core rule forbids. Keyed by game family because the same attribute name means different things across games (DS1 Vitality is HP; DS2/DS3 Vitality is equip load) — exactly the nuance the rule cares about. From the games' own status screens / community wikis.

Definition at line 33 of file render.py.

◆ STAT_CAPS

dict sl2.render.STAT_CAPS

Soft-cap / per-level breakpoint reference per attribute, per game.

These are the documented scaling RATES and soft-cap levels (a game-mechanics fact, true for any build), NOT a per-character computed value — computing the absolute would be wrong (DS2 Vigor 36 gives HP 1351 in-save vs 1420 from the flat table, because the real curve carries base/class offsets the summaries drop). So the tool prints the rate table and the character's own stat value, and never a derived absolute it cannot verify. Sourced from the fextralife stat pages (DS1/DS2/DS3/ER), fetched per stat.

Definition at line 99 of file render.py.