Skip to content

Commit

Permalink
fix superdwarf
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyg committed Sep 26, 2014
1 parent b310bde commit c0e557c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions superdwarf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
$superdwarf_ids.each { |id|
if u = df.unit_find(id) and not u.flags1.dead
# faster walk/work
if u.counters.job_counter > 0
u.counters.job_counter = 0
end
u.actions.each { |a|
case a.type
when :Move, :Climb, :Job, :Job2
a.data.send(a.type.to_s.downcase).timer = 0
end
}

# no sleep
if u.counters2.sleepiness_timer > 10000
Expand Down

0 comments on commit c0e557c

Please sign in to comment.