From 56df91158b8aaeea1b7caab27da9f739129f52c9 Mon Sep 17 00:00:00 2001 From: David Gay Date: Thu, 3 Jun 2021 19:04:14 -0400 Subject: Plug in Spicework --- CHANGELOG.md | 1 + app/controllers/characters/hearth_controller.rb | 3 +++ 2 files changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f87c4b..06b2c44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ Note that from this point foward, I am not explicitly listing the activities req amenities, etc that are added unless they are special in some way. ### Added +- Spicework has been implemented. You can now craft food and drugs in your hearth, once you build a spicebench. - New hearth amenities: spicebench level 1, spicebench level 2 - New items: bluster powder diff --git a/app/controllers/characters/hearth_controller.rb b/app/controllers/characters/hearth_controller.rb index 8e32ab0..86757d8 100644 --- a/app/controllers/characters/hearth_controller.rb +++ b/app/controllers/characters/hearth_controller.rb @@ -6,6 +6,7 @@ class Characters::HearthController < ApplicationController @amenity_activities = { forge: [], labratory: [], + spicebench: [], } Activity.where("gid like ?", "craft_%").each do |activity| @@ -17,6 +18,8 @@ class Characters::HearthController < ApplicationController @amenity_activities[:forge].push(activity) && next when "labratory" @amenity_activities[:labratory].push(activity) && next + when "spicebench" + @amenity_activities[:spicebench].push(activity) && next else raise "Invalid amenity gid (#{requirement_data[:gid]}" end -- cgit v1.2.3