Skip to content
Snippets Groups Projects
Commit b4ba2024 authored by DarkGod's avatar DarkGod
Browse files

Actors with inventory access disabled can not access stores either. Sorry!

parent 7b53992f
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -280,6 +280,12 @@ end
--- Actor interacts with the store
-- @param who the actor who interacts
function _M:interact(who, name)
-- Nice try
if who.no_inventory_access then
game.logPlayer(who, "This entity can not access inventories.")
return
end
-- Lore-ize me?
if who.level < (self.store.minimum_level or 0) then
game.logPlayer(who, "You must be level %d to access this shop.", self.store.minimum_level or 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment