Skip to content

Commit

Permalink
Merge branch 'master' of gh:dfhack/scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
lethosor committed Apr 16, 2017
2 parents 614b138 + cc1b758 commit 0e22223
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions add-thought.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,12 @@ function addEmotionToUnit(unit,thought,emotion,severity,strength,subthought)
end
end
emotions:insert('#',{new=df.unit_personality.T_emotions,
type=emotion,
type=tonumber(emotion),
unk2=1,
strength=strength,
thought=thought,
subthought=subthought,
severity=severity,
flags=0,
strength=tonumber(strength),
thought=tonumber(thought),
subthought=tonumber(subthought),
severity=tonumber(severity),
unk7=0,
year=df.global.cur_year,
year_tick=df.global.cur_year_tick
Expand Down

0 comments on commit 0e22223

Please sign in to comment.