diff options
author | Tom <spalf0@gmail.com> | 2015-05-26 14:04:04 -0500 |
---|---|---|
committer | Tom <spalf0@gmail.com> | 2015-05-26 14:04:04 -0500 |
commit | 6b967f3bd7a3e7203b57bd9e4edb0db82bc9ed1c (patch) | |
tree | 8dfb8ce54fb9ef775bd2153aae67307d1f943e78 /src/resource.cpp | |
parent | ce6b35d717de85a7ac45fa98197edf13e1820c8a (diff) |
revamped the list and creatures
two bugs i can see right now
-somehow when a resource has less than 0 amount it still sticks around (somewhat rare)
-some creatures just bounce back and forth until they die not getting to their target
Diffstat (limited to 'src/resource.cpp')
-rw-r--r-- | src/resource.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resource.cpp b/src/resource.cpp index 4f12e2d..71a13e3 100644 --- a/src/resource.cpp +++ b/src/resource.cpp @@ -28,3 +28,8 @@ Location Resource::getLocation() //Returns resource object Location L(xPosition,yPosition,2); return L; } + +void Resource::eat() +{ + amount-=10; +} |