Skip to content

Commit

Permalink
Description for Ssigus nest #394
Browse files Browse the repository at this point in the history
  • Loading branch information
brightrim committed May 16, 2024
1 parent 76573be commit 6d8aaa1
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions item/nests.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,29 @@ You should have received a copy of the GNU Affero General Public License along
with this program. If not, see <http://www.gnu.org/licenses/>.
]]

local common = require("base.common")
local lookat = require("base.lookat")
local egggathering = require("craft.gathering.egggathering")

local M = {}

-- UPDATE items SET itm_script='item.nests' WHERE itm_id IN (1171,1172);
function M.UseItem(user, sourceItem, actionState)

function M.UseItem(User, SourceItem, ltstate)
egggathering.StartGathering(user, sourceItem, actionState)
end

function M.LookAtItem(user, sourceItem)

local lookAt = lookat.GenerateLookAt(user, sourceItem)

local effectType = sourceItem:getData("eggProtectionType")

if effectType == "ssigus" then

lookAt.description = common.GetNLS(user, "GERMAN TRANSLATION", "A nest containing lizardman eggs.")
end

egggathering.StartGathering(User, SourceItem, ltstate);
return lookAt
end

return M
Expand Down

0 comments on commit 6d8aaa1

Please sign in to comment.