joey101 / SnowballZ
No description has been added.
Clone this repository (size: 11.3 MB): HTTPS / SSH
$ hg clone http://bitbucket.org/joey101/snowballz/
| commit 118: | bd89e1d4d6f2 |
| parent 117: | 9fb80c627598 |
| branch: | default |
Workers will unload crystal before eating when cold now.
13 months ago
Changed (Δ171 bytes):
raw changeset »
lib/unit.py (5 lines added, 1 lines removed)
| … | … | @@ -19,7 +19,11 @@ class BaseUnit(object): |
19 |
19 |
if self.warmth == 0: |
20 |
20 |
return 1 |
21 |
21 |
if self.warmth <= self.cold_point: |
22 |
|
|
22 |
if self.holding and self.holding.name != "fish": |
|
23 |
# Go and unload current holding. Does automaticly. |
|
24 |
pass |
|
25 |
else: |
|
26 |
return find_fish_behavior(self) |
|
23 |
27 |
if self.job: |
24 |
28 |
return self.job.do() |
25 |
29 |
else: |
