From 4062ac8b1d038a119f7a8cdbc2479eea62d173c6 Mon Sep 17 00:00:00 2001 From: Nicholas McDaniel Date: Thu, 28 Nov 2024 10:53:25 -0500 Subject: [PATCH] Minor cleanup --- geld.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/geld.lua b/geld.lua index aada87249..7b55cdb50 100644 --- a/geld.lua +++ b/geld.lua @@ -1,4 +1,4 @@ -utils = require('utils') +local utils = require('utils') local validArgs = utils.invert({ 'unit', @@ -21,7 +21,6 @@ if args.unit then unit = df.unit.find(id) else qerror("Invalid unit ID provided.") - return end else unit = dfhack.gui.getSelectedUnit() @@ -29,12 +28,10 @@ end if not unit then qerror("Invalid unit selection.") - return end if unit.sex == df.pronoun_type.she then qerror("Cannot geld female animals.") - return end -- Find the geldable body part id, returns -1 on failure