41 lines
1.2 KiB
Plaintext
41 lines
1.2 KiB
Plaintext
|
|
//! Emma - The bakers' daughter
|
||
|
|
//!
|
||
|
|
//! Demonstrates:
|
||
|
|
//! - Character using different template (Child vs Baker)
|
||
|
|
//! - Different behavior set appropriate to age
|
||
|
|
//! - No work schedule (children don't work)
|
||
|
|
|
||
|
|
use schema::templates::Child;
|
||
|
|
|
||
|
|
character Emma from Child {
|
||
|
|
// Personal details
|
||
|
|
age: 12
|
||
|
|
|
||
|
|
// Child-specific traits
|
||
|
|
school_grade: 7
|
||
|
|
curiosity: 0.9
|
||
|
|
|
||
|
|
// General traits
|
||
|
|
energy: 0.9
|
||
|
|
mood: 0.85
|
||
|
|
|
||
|
|
---backstory
|
||
|
|
Emma is the bright, energetic daughter of Martha and John. She loves
|
||
|
|
helping in the bakery on weekends, though she's not allowed to work
|
||
|
|
the ovens yet. She's fascinated by the chemistry of baking and often
|
||
|
|
asks her parents endless questions about why dough rises, how yeast
|
||
|
|
works, and what makes bread crusty.
|
||
|
|
|
||
|
|
At school, she excels in science and math, and dreams of one day
|
||
|
|
creating her own innovative recipes. For now, she's content to help
|
||
|
|
package goods and chat with the regular customers who've watched her
|
||
|
|
grow up.
|
||
|
|
---
|
||
|
|
}
|
||
|
|
|
||
|
|
// Note: Emma inherits from Child template which:
|
||
|
|
// - uses behaviors: PlayBehavior, LearnBehavior
|
||
|
|
// - uses behaviors: BasicNeeds, SocialInteraction (from Person)
|
||
|
|
// - Has NO work schedule (appropriate for a child)
|
||
|
|
// - Has different fields than Baker template
|