diff options
Diffstat (limited to 'app/lib/activity_processor.rb')
-rw-r--r-- | app/lib/activity_processor.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/lib/activity_processor.rb b/app/lib/activity_processor.rb index 6d2cd90..73f296d 100644 --- a/app/lib/activity_processor.rb +++ b/app/lib/activity_processor.rb @@ -37,6 +37,7 @@ class ActivityProcessor type = result[:type] case type when "xp" + puts "Result: #{result}" handle_xp_result(result) when "monster" raise TooManyWoundsError unless @character.can_fight? @@ -155,7 +156,7 @@ class ActivityProcessor end def handle_xp_result(data) - skill = Skill.find_by_gid(data[:skill]) + skill = Skill.find_by_gid(data[:gid]) amount = data[:base] @character.add_skill_xp(skill, amount) @results.push({ type: "xp", skill: skill, xp: amount }) |