|
|
@ -16,9 +16,12 @@ when 'add'
|
|
|
|
$superdwarf_ids.each { |id|
|
|
|
|
$superdwarf_ids.each { |id|
|
|
|
|
if u = df.unit_find(id) and not u.flags1.dead
|
|
|
|
if u = df.unit_find(id) and not u.flags1.dead
|
|
|
|
# faster walk/work
|
|
|
|
# faster walk/work
|
|
|
|
if u.counters.job_counter > 0
|
|
|
|
u.actions.each { |a|
|
|
|
|
u.counters.job_counter = 0
|
|
|
|
case a.type
|
|
|
|
end
|
|
|
|
when :Move, :Climb, :Job, :Job2
|
|
|
|
|
|
|
|
a.data.send(a.type.to_s.downcase).timer = 0
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
# no sleep
|
|
|
|
# no sleep
|
|
|
|
if u.counters2.sleepiness_timer > 10000
|
|
|
|
if u.counters2.sleepiness_timer > 10000
|
|
|
|