diff --git a/scripts/add-thought.lua b/scripts/add-thought.lua index 6d918debf..b0b154a00 100644 --- a/scripts/add-thought.lua +++ b/scripts/add-thought.lua @@ -2,7 +2,7 @@ local utils=require('utils') -local function addEmotionToUnit(emotions,thought,emotion,subthought,severity) +local function addEmotionToUnit(emotions,thought,emotion,severity,subthought) if not (type(emotion)=='number') then emotion=df.emotion_type[emotion] end if not (type(thought)=='number') then thought=df.unit_thought_type[thought] end emotions:insert('#',{new=df.unit_personality.T_emotions,