This commit is contained in:
Adam Millerchip 2021-12-26 23:19:43 +09:00
parent fe663825bc
commit 8f885dd927
1 changed files with 2 additions and 0 deletions

View File

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