Tweak create-unit and remove trailing whitespace.

develop
expwnent 2015-09-15 03:17:57 -04:00
parent 9107d2be52
commit ab749ab0c8
1 changed files with 1 additions and 2 deletions

@ -443,8 +443,7 @@ if args.domesticate then
domesticate(unitId, group_id) domesticate(unitId, group_id)
end end
if age then if age or age == 0 then
--note that if age is 0 then we
local u = df.unit.find(unitId) local u = df.unit.find(unitId)
local oldYearDelta = u.relations.old_year - u.relations.birth_year local oldYearDelta = u.relations.old_year - u.relations.birth_year
u.relations.birth_year = df.global.cur_year - age u.relations.birth_year = df.global.cur_year - age