gaydar: handle soul-less creatures and fix spacing

develop
lethosor 2016-03-04 17:54:32 -05:00
parent 12044852cc
commit 4b07a6001e
1 changed files with 3 additions and 3 deletions

@ -73,11 +73,11 @@ function getSexString(sex)
end end
local function determineorientation(unit) local function determineorientation(unit)
if unit.sex~=-1 then if unit.sex~=-1 and unit.status.current_soul then
local return_string='' local return_string=''
local orientation=unit.status.current_soul.orientation_flags local orientation=unit.status.current_soul.orientation_flags
if orientation.indeterminate then if orientation.indeterminate then
return 'indeterminate (probably adventurer)' return ' indeterminate (probably adventurer)'
end end
local male_interested,asexual=false,true local male_interested,asexual=false,true
if orientation.romance_male then if orientation.romance_male then
@ -109,7 +109,7 @@ local function determineorientation(unit)
end end
return return_string return return_string
else else
return "is not biologically capable of sex" return " is not biologically capable of sex"
end end
end end