Files
storybook/examples/baker-family/characters/martha.sb

45 lines
1.4 KiB
Plaintext
Raw Normal View History

//! Martha - Master baker and family matriarch
//!
//! Demonstrates:
//! - Character inheriting from template with resources
//! - Template provides both behaviors and schedule
//! - Field overrides from template
use schema::templates::Baker;
character Martha from Baker {
// Personal details
age: 34
// Baker-specific traits
specialty: "sourdough"
baking_skill: 0.9
customer_relations: 0.95
skill_tier: Master
// General traits (inherited from Person template)
energy: 0.7
mood: 0.8
// Work ethic (from Worker template)
work_ethic: 0.95
occupation: "master baker"
---backstory
Martha learned to bake from her grandmother and has perfected
the art of sourdough over fifteen years. She wakes at 4 AM every
day to prepare the morning bread, and her bakery is known throughout
the region for its exceptional quality.
She manages the business side as well, keeping meticulous records
and maintaining warm relationships with all her customers. The bakery
is not just a shop - it's the heart of the community.
---
}
// Note: Martha inherits from Baker template which:
// - uses behaviors: BakingSkills, CustomerService (from Baker)
// - uses behaviors: BasicNeeds, SocialInteraction (from Person via Worker)
// - uses schedule: BakerSchedule (from Baker)
// - uses schedule: WorkWeek (base for BakerSchedule)