Mrs. Figg's Petting Zoo

Dual-location animal interaction system. Village encounter (20% appearance): Pay 5 gold to pet animals for "Warm Fuzzies" buff (defmod 1.05, 5 rounds). Forest event basket game: Mrs. Figg has 3 baskets with 4 colored animals each (Calico, Tiger, Ginger, White + rare Hedgehog!). Matching colors win forest fights (2 match = +1, 3 match = +2, 3 Hedgehogs = +5!), no match = lose fight or charm. Animals rotate based on gamedaysremaining setting., renamed to Mrs. Figg for Harry Potter theming. Where you pay to pet kittens then bet forest fights on whether Mrs. Figg's mystery baskets contain matching tigers.

Village Petting Zoo

Appearance System:

  • 20% chance per village visit (villagepercent setting)
  • Village desc: "`%Mrs. Figg is here with her `#[animals]`%!`n"
  • Navigation: "?Pet Mrs. Figg's [Animals]`0 (`^[cost] gold`0)"
  • Default cost: 5 gold
  • Once per day limit (played pref, resets at newday)

Petting Sequence:

  • Pay gold (profit setting tracks total earned)
  • "`5You place your `^5`5 gold in the basket, and spend a few minutes petting one of the [animals]`5."
  • "`5Soon though, Mrs. Figg chases you off, and you stand at a distance admiring the [animals]`5."
  • Receive combat buff (buffname setting, default: "`@Warm Fuzzies")
  • defmod 1.05, 5 rounds, schema: module-crazyaudrey

Post-Petting Basket Access:

  • After petting: "`5After a few minutes, you once again try to approach in order to look into her baskets."
  • If played = 0: Link appears "Look at Mrs. Figg's baskets"
  • If played = 1: "`%Hey!! I recognize you! You've already played with my [animals]`% today! Get away from here, you pervy [animal]`% fancier!`5"
  • Must pet first to access basket game
  • Can only play baskets once per day

Forest Basket Game

Event Trigger:

  • Forest special event (100 base chance hook)
  • "`5You stumble across a clearing that is oddly quiet."
  • "To one side are three baskets, tightly lidded."
  • Hear faint [sound]`5 of a [animal]`5 (e.g., "mew" of a "kitten")
  • "You reach for the lid of the first basket when out of nowhere, Mrs. Figg appears, ranting feverishly about colored [animals]`5."

Mrs. Figg's Proposition (in regal melodious accent):

  • "`%Of these baskets, have I three,`n"
  • "Four [animals]`% inside each there do be.`n`n"
  • "Minds of their own, do they have,`n"
  • "Should two alike emerge, you'll get this salve.`n`n"
  • "Energy it gives, to fight your foes,`n"
  • "Merely rub it 'tween your toes.`n`n"
  • "Should no two alike show their head,`n"
  • "Earlier today, you'll see your bed.`n`n"
  • "That then is my proposition,`n"
  • "Shall thou take it, or from me run?`5"

Choices:

  • Play: Continue to basket reveal
  • Run: "`5You run, very quickly, away from this mad woman."

Basket Reveal Mechanics

Color System:

  • 4 standard colors: `^C`&a`Ql`6i`7c`qo, `7T`&i`7g`&e`7r, `QGinger, `&White
  • 1 rare outcome: `^`bHedgehog!`b (1/20 chance per basket)
  • Each basket independently randomly selects color (e_rand 0-3, or 4 for Hedgehog)
  • Three baskets total = 3 random selections

Reveal Sequence:

  • Basket 1: "Mrs. Figg thumps the first basket on the lid. A [color]`5 [animal]`5 peeks its head out."
  • Basket 2: "She thumps the second basket on the lid, and a [color]`5 [animal]`5 peeks its head out."
  • Basket 3: "She thumps the third basket on the lid, and a [color]`5 [animal]`5 hops out and bounds up to her shoulder."
  • If Hedgehog: "A `^`bHedgehog!`b`5 [hops/peeks] out." (special text)

Outcome System

Three Matching (All Same Color):

  • Three Hedgehogs (1/8000 chance):
    • "`%Hedgehogs? HEDGEHOGS?? Hahahahaha, HEDGEHOGS!!!!`5"
    • Mrs. Figg snatches them up in glee and runs into forest/crowd
    • "You notice that she has dropped a full BAG of those wonderful salves.`n`n"
    • "`^You gain FIVE forest fights!"
    • +5 turns
  • Three Standard Colors:
    • "`%Argh, you are ALL very bad [animals]`%!`5"
    • Mrs. Figg hugs shoulder animal and puts it back
    • "`%Because my [animals]`% all were alike, I grant you TWO salves.`5"
    • "You rub the salves on your toes.`n`n"
    • "`^You gain TWO forest fights!"
    • +2 turns

Two Matching (Any Pair):

  • "`%Garr, you crazy [animals]`%, what do you know? Why I ought to paint you all different colors!`5"
  • Despite threats, Mrs. Figg pets shoulder animal and places it back
  • ".before giving you your salve, which you rub all over your toes.`n`n"
  • "`^You gain a forest fight!"
  • +1 turn

No Matching (All Different):

  • "`%Well done my pretties!`5" (Mrs. Figg congratulates animals)
  • Shoulder animal leaps at you
  • "In fending it off, you [lose energy/get scratched]."
  • If turns > 0: Lose 1 forest fight ("`^You lose a forest fight!")
  • If turns = 0: Lose 1 charm ("`^You lose a charm point!")
  • "Finally it hops back in its basket and all is quiet."
  • Mrs. Figg cackles quietly

Animal Rotation System

Current Animal Settings:

  • animal: Singular name (Kitten)
  • animals: Plural name (Kittens)
  • lanimal: Lowercase singular (kitten)
  • lanimals: Lowercase plural (kittens)
  • sound: Animal sound (mew)
  • buffname: Buff name (Warm Fuzzies)

Default Animal Settings (saved state for reset):

  • defaultanimal, defaultanimals, defaultsound, defaultbuffname
  • Used when timer expires or admin manually resets

Rotation Timer:

  • gamedaysremaining: Days until reset to default (-1 = indefinite)
  • At newday-runonce: daysremaining decrements by 1
  • When reaches 0: All animal settings revert to default settings
  • Admin can change animals seasonally (e.g., Pumpkins for Halloween)

Probability Analysis

Standard Colors (Ignoring Hedgehogs):

  • 3 match (all same): 4/64 = 6.25% (Win +2 turns)
  • 2 match (any pair): 36/64 = 56.25% (Win +1 turn)
  • 0 match (all different): 24/64 = 37.5% (Lose -1 turn or -1 charm)
  • Expected value: (0.0625 × 2) + (0.5625 × 1) + (0.375 × -1) = +0.3125 turns
  • **Positive expected value! Always play baskets!**

Including Hedgehogs:

  • 3 Hedgehogs: 1/8000 = 0.0125% (Win +5 turns)
  • Effectively adds 0.000625 expected value (negligible)
  • Still positive EV overall

Strategy Implication:

  • Always play basket game when available (positive expected value)
  • Risk: Can lose turn/charm 37.5% of time
  • Reward: Win turns 62.5% of time (+1 or +2 or +5)
  • Long-term: Net gain of ~0.3 turns per game

Strategy Guide

Village Encounter:

  • Always pet if you have 5 gold (cheap buff)
  • Buff only lasts 5 rounds (short duration, use immediately in forest)
  • After petting: Look at baskets if you haven't played today
  • 20% village appearance = somewhat rare, seize opportunity

Forest Encounter:

  • Always play basket game (positive expected value)
  • Pray for Hedgehogs (1/8000 chance of +5 turns jackpot)
  • Best case: +2 turns (3 matching colors, 6.25% chance)
  • Worst case: -1 turn or -1 charm (all different, 37.5% chance)
  • Medium win: +1 turn (2 matching, 56.25% chance)

Risk Management:

  • If 0 turns: No-match outcome costs charm instead (less painful)
  • If low charm: No-match only removes 1 charm (minimal impact)
  • Running away = 0 gain (worse than playing +0.3 EV game)

Module History & Theming

Original Name: "Crazy Audrey's Petting Zoo"

HogwartsLive Rename: "Mrs. Figg's Petting Zoo"

  • Mrs. Arabella Figg: Harry Potter character (crazy cat lady near Dursleys)
  • Squib (non-magical) who breeds Kneazles (magical cats)
  • Canon character known for cats → perfect fit for petting zoo module
  • Code still references "crazyaudrey" internally (hooks, prefs, schema names)
  • Display text uses "Mrs. Figg" for thematic consistency

Hedgehog Easter Egg:

  • Hedgehogs extremely rare (1/20 per basket, 1/8000 for three)
  • Possibly reference to Sonic the Hedgehog? Or just random absurdity?
  • Mrs. Figg's ecstatic reaction suggests they're valuable/desirable
  • She abandons player and runs into forest/crowd with Hedgehogs
  • Drops full bag of salves (5 turns) as "accident"

Limitations

  • Once Per Day: Can only pet AND play baskets once/day (played pref)
  • Must Pet First: Village encounter requires petting before basket access
  • Forest Separate: Forest basket game is independent (no petting required)
  • 20% Village Rate: Won't see Mrs. Figg every day
  • Buff Duration: 5 rounds only (very short, use immediately)
  • No Match = Pain: 37.5% chance to lose turn/charm (significant risk)

Mrs. Figg's Petting Zoo: where you pay 5 gold to pet kittens for a 5-round defense buff (defmod 1.05), then get access to a probability-based minigame involving three baskets containing four colored kittens each (or rarely, Hedgehogs!). Mrs. Figg—who speaks in Shakespearean rhyming couplets when presenting the game but reverts to normal ranting the rest of the time—offers you a chance to win forest fights if two or more kittens match colors when she dramatically thumps the baskets. The odds are slightly in your favor (+0.3 expected turns per game), but there's a 37.5% chance all three baskets reveal different colors and the shoulder-mounted kitten attacks you, causing you to lose a forest fight (or charm point if you're out of fights). If you somehow hit the 1/8000 jackpot of three Hedgehogs emerging, Mrs. Figg loses her mind shouting "HEDGEHOGS!!" and runs into the forest/crowd while accidentally dropping a bag containing FIVE forest fight salves, which you're instructed to "rub 'tween your toes" because apparently that's how forest fight energy transfer works in this universe.