Skip to content

Commit 2142265

Browse files
committed
gaydar: handle soul-less creatures and fix spacing
1 parent 33203cf commit 2142265

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gaydar.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ function getSexString(sex)
7373
end
7474

7575
local function determineorientation(unit)
76-
if unit.sex~=-1 then
76+
if unit.sex~=-1 and unit.status.current_soul then
7777
local return_string=''
7878
local orientation=unit.status.current_soul.orientation_flags
7979
if orientation.indeterminate then
80-
return 'indeterminate (probably adventurer)'
80+
return ' indeterminate (probably adventurer)'
8181
end
8282
local male_interested,asexual=false,true
8383
if orientation.romance_male then
@@ -109,7 +109,7 @@ local function determineorientation(unit)
109109
end
110110
return return_string
111111
else
112-
return "is not biologically capable of sex"
112+
return " is not biologically capable of sex"
113113
end
114114
end
115115

0 commit comments

Comments
 (0)