Skip to content

Commit

Permalink
Minor adjustment to role power rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
kw committed Jun 17, 2024
1 parent f46f0d3 commit b7d9362
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"breedadvantage",
"breedtrait",
"rolepower",
"lostart",
"misplacedart",
}
_OPTION_BONUS = "__option__"

Expand Down Expand Up @@ -1145,7 +1147,8 @@ def issues(self) -> list[Issue | None]:
for expr, value in grants.items():
if value == 0:
continue
if not ruleset.identifier_defined(expr):
expr = PropExpression.parse(expr)
if not ruleset.identifier_defined(expr.prop):
issues.append(
Issue(
issue_code="plot",
Expand Down
3 changes: 2 additions & 1 deletion src/camp/engine/rules/tempest/records.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class AwardRecord(BaseModel, frozen=True):
character_flags: Arbitrary flags to add to the character. For use in role/class/art access.
character_grants: Arbitrary grant strings, like "lore#Nature" or "divine-favor:3" or "lp:2",
in case plot wants to arbitrarily add or subtract things to or from a character card.
sp: Tally of service point awards.
"""

date: datetime.date
Expand Down Expand Up @@ -115,7 +116,7 @@ def describe(self, secrets=False) -> str:
if self.event_xp or self.event_cp:
parts.append(f"Event: {self.event_xp} XP + {self.event_cp} CP")
if self.sp:
parts.append(f"SP: {self.sp:+d}")
parts.append(f"SP {self.sp:+d}")

if secrets and (
self.character_flags or self.player_flags or self.character_grants
Expand Down

0 comments on commit b7d9362

Please sign in to comment.