diff options
Diffstat (limited to 'src/entities.rs')
-rw-r--r-- | src/entities.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/entities.rs b/src/entities.rs index 80e1235..b0169c8 100644 --- a/src/entities.rs +++ b/src/entities.rs @@ -123,7 +123,7 @@ impl Enemy for Character { luck,
level: 0,
xp: 0,
- location: location,
+ location,
previous_location: location,
tile_type: TileType::Character,
dirty: false,
@@ -145,13 +145,13 @@ impl Player for Character { luck: i32,
) -> Character {
Character {
- name: name,
- class: class,
+ name,
+ class,
max_health: health,
- health: health,
- attack: attack,
- dodge: dodge,
- luck: luck,
+ health,
+ attack,
+ dodge,
+ luck,
xp: 0,
level: 0,
location: (0, 0),
|