Skip to content

Commit

Permalink
handle ArmsOnEquip items
Browse files Browse the repository at this point in the history
  • Loading branch information
egocarib committed Jan 19, 2024
1 parent 98b8485 commit ae17779
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion hagadias/qudobject_props.py
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ def desc(self) -> str | None:
if self.part_MutationOnEquip is not None:
if self.part_MutationOnEquip_CanLevel is None:
if self.part_MutationOnEquip_ClassName == "Telepathy":
desc_extra.append("{{rules|Grants you Telepathy.")
desc_extra.append("{{rules|Grants you Telepathy.}}")
if self.part_ModImprovedConfusion is not None:
val = int_or_none(self.part_ModImprovedConfusion_Tier)
if val is not None and val > 0:
Expand Down Expand Up @@ -1145,6 +1145,14 @@ def desc(self) -> str | None:
+ f"+{activationchance}% chance to slip away from natural melee"
+ " attacks}}"
)
if self.part_ArmsOnEquip is not None:
# logic is complex for this one, so will likely just support specific item combos
if (
self.part_ArmsOnEquip_BaseHands == "Pincers"
and self.part_ArmsOnEquip_Category == "Arthropod"
and self.part_ArmsOnEquip_DefaultHandBehavior == "Nephal_Claw_Circle"
):
desc_extra.append("{{rules|Grants 2 chelipeds with spotted claws}}")
if self.part_Cursed_RevealInDescription == "true":
desc_extra.append(
"{{rules|"
Expand Down

0 comments on commit ae17779

Please sign in to comment.