mirror of
https://github.com/Threnklyn/dungeon-sheets.git
synced 2026-05-31 09:58:28 +02:00
Added passive insight and investigation for GM notes.
This commit is contained in:
@@ -84,7 +84,7 @@ class Content(ABC):
|
||||
Mechanic = mechanic
|
||||
elif SuperClass is not None and isinstance(mechanic, SuperClass):
|
||||
# Has been instantiated for some reason
|
||||
Mechanic = type(Mechanic)
|
||||
Mechanic = type(mechanic)
|
||||
else:
|
||||
try:
|
||||
# Retrieve pre-defined mechanic
|
||||
@@ -187,6 +187,19 @@ class Creature(Content):
|
||||
def passive_wisdom(self):
|
||||
return self.perception.modifier + 10
|
||||
|
||||
@property
|
||||
def passive_perception(self):
|
||||
"""Just a wrapper around passive wisdom."""
|
||||
return self.passive_wisdom
|
||||
|
||||
@property
|
||||
def passive_insight(self):
|
||||
return self.insight.modifier + 10
|
||||
|
||||
@property
|
||||
def passive_investigation(self):
|
||||
return self.investigation.modifier + 10
|
||||
|
||||
@property
|
||||
def abilities(self):
|
||||
return [self.strength, self.dexterity, self.constitution,
|
||||
|
||||
@@ -38,13 +38,17 @@
|
||||
<th> </th>
|
||||
<th>AC</th>
|
||||
<th>Pass. Per.</th>
|
||||
<th>Pass. Ins.</th>
|
||||
<th>Pass. Inv.</th>
|
||||
<th>Spell DC</th>
|
||||
</tr>
|
||||
[% for member in party %]
|
||||
<tr>
|
||||
<td>[[ member.name[:28] ]]</td>
|
||||
<td>[[ member.armor_class ]]</td>
|
||||
<td>[[ member.perception.modifier + 10 ]]</td>
|
||||
<td class="passive-perception">[[ member.passive_perception ]]</td>
|
||||
<td class="passive-insight">[[ member.passive_insight ]]</td>
|
||||
<td class="passive-investigation">[[ member.passive_investigation ]]</td>
|
||||
<td>[% for class in member.class_list %]
|
||||
[% if class.spellcasting_ability %] [[ member.spell_save_dc(class) ]], [% endif %]
|
||||
[% endfor %]
|
||||
|
||||
@@ -24,19 +24,29 @@
|
||||
\\
|
||||
[% endfor %]
|
||||
\end{DndTable}
|
||||
\begin{DndTable}{r c c c c}
|
||||
& AC & Pas.\ Per. & Max HP & Spl.\ DC \\
|
||||
\begin{DndTable}{r c c c}
|
||||
& AC & Max HP & Spl.\ DC \\
|
||||
[% for member in party %]
|
||||
[[ member.name[:28] ]]
|
||||
& [[ member.armor_class ]]
|
||||
& [[ member.perception.modifier + 10 ]]
|
||||
& [[ member.max_hp ]]
|
||||
& [[ member.hp_max ]]
|
||||
& [% for class in member.class_list %]
|
||||
[% if class.spellcasting_ability %] [[ member.spell_save_dc(class) ]], [% endif %]
|
||||
[% endfor %]
|
||||
\\
|
||||
[% endfor %]
|
||||
\end{DndTable}
|
||||
% Passive stats
|
||||
\begin{DndTable}{r c c c}
|
||||
& Pas. Per.\ & Pas. Ins.\ & Pas. Inv.\ \\
|
||||
[% for member in party %]
|
||||
[[ member.name[:28] ]]
|
||||
& [[ member.passive_perception ]] % Passive perception
|
||||
& [[ member.passive_insight ]] % Passive insight
|
||||
& [[ member.passive_investigation ]] % Passive investigation
|
||||
\\
|
||||
[% endfor %]
|
||||
\end{DndTable}
|
||||
%% XP thresholds for the party
|
||||
\begin{DndTable}{r c c c c}
|
||||
& Easy & Medium & Hard & Deadly \\
|
||||
@@ -60,19 +70,32 @@
|
||||
\\
|
||||
[% endfor %]
|
||||
\end{tabular}
|
||||
% Additional combat stats
|
||||
\begin{tabular}{r | c c c}
|
||||
& AC & Pas.\ Per. & Spl.\ DC \\
|
||||
& AC & Max HP & Spl.\ DC \\
|
||||
\hline\hline
|
||||
[% for member in party %]
|
||||
[[ member.name[:28] ]]
|
||||
& [[ member.armor_class ]]
|
||||
& [[ member.perception.modifier + 10 ]]
|
||||
& [[ member.hp_max ]] % Maximum HP
|
||||
& [% for class in member.class_list %]
|
||||
[% if class.spellcasting_ability %] [[ member.spell_save_dc(class) ]], [% endif %]
|
||||
[% endfor %]
|
||||
\\
|
||||
[% endfor %]
|
||||
\end{tabular}
|
||||
% Passive stats
|
||||
\begin{tabular}{r | c c c}
|
||||
& Pas.\ Per. & Pas.\ Ins. & Pas.\ Inv.\ \\
|
||||
\hline\hline
|
||||
[% for member in party %]
|
||||
[[ member.name[:28] ]]
|
||||
& [[ member.passive_perception ]] % Passive perception
|
||||
& [[ member.passive_insight ]] % Passive insight
|
||||
& [[ member.passive_investigation ]] % Passive investigation
|
||||
\\
|
||||
[% endfor %]
|
||||
\end{tabular}
|
||||
%% XP thresholds for the party
|
||||
\begin{tabular}{r c c c c}
|
||||
& Easy & Medium & Hard & Deadly \\
|
||||
|
||||
Reference in New Issue
Block a user