From d73a915dec71c2f45eceb51f1781a98acb2f8e6e Mon Sep 17 00:00:00 2001 From: ahlove3 Date: Sun, 1 Sep 2024 11:53:35 -0400 Subject: [PATCH] Trimmed trailing whitespace --- rejuvenate.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rejuvenate.lua b/rejuvenate.lua index 83af43cb4..d9911d488 100644 --- a/rejuvenate.lua +++ b/rejuvenate.lua @@ -34,7 +34,7 @@ function rejuvenate(unit, force, dry_run, age) if not v.id == unit.id then table.insert(leftoverUnits, v) end - end + end -- create a shifted table of the leftover units to make up for lua tables starting with index 1 and the game starting with index 0 for i = 0, #leftoverUnits - 1, 1 do local x = i+1 @@ -49,10 +49,9 @@ function rejuvenate(unit, force, dry_run, age) unit.profession2 = df.profession.STANDARD unit.idle_area_type = 26 unit.mood = -1 - -- let the mom know she isn't carrying anyone anymore local motherUnitId = unit.relationship_ids.Mother - df.unit.find(motherUnitId).flags1.ridden = false + df.unit.find(motherUnitId).flags1.ridden = false end unit.profession = df.profession.STANDARD end