This commit is contained in:
Samuel Webb 2024-07-11 19:57:48 -04:00
parent e8f09190d6
commit 5b51d6f393
46 changed files with 83 additions and 65 deletions

View file

@ -36,6 +36,7 @@ const Character = struct {
role: Role,
gold: u32,
experience: u32,
health: u8,
};
pub fn main() void {
@ -44,6 +45,7 @@ pub fn main() void {
.role = Role.wizard,
.gold = 20,
.experience = 10,
.health = 100,
};
// Glorp gains some gold.