# This patch: # --Sets the offline item storage cap to 100 # --Removes the time requirement for withdrawing stored items # --Removes the level restriction added to stored items # --- a/overload/data/chats/items-vault-command-orb-offline.lua +++ b/overload/data/chats/items-vault-command-orb-offline.lua @@ -24,9 +24,6 @@ function willModify(o) local msg = "" - if not rawget(o, "require") and getLevelReq(o) > 0 then - msg = ("Transfering this item will place a level %d requirement on it, since it has no requirements. "):format(getLevelReq(o)) - end if o.unvault_ego then msg = msg.."Some properties of the item will be lost upon transfer, since they are class- or talent-specific. " end @@ -34,9 +31,6 @@ end function doModify(o) - if not rawget(o, "require") and getLevelReq(o) > 0 then - o.require = {level=getLevelReq(o)} - end if o.unvault_ego then local list = table.clone(o.ego_list) local n = #list, i, j @@ -62,7 +56,7 @@ Only items from a validated game versions are uploadable.#WHITE#* #CRIMSON#Offline mode#WHITE#: The item's vault works even without a network connection but items will thus only be saved on your computer and can not be shared to an other one. -The offline vault is only available when offline and contains 3 slots.]], +The offline vault is only available when offline and contains 100 slots.]], answers = { {"[Place an item in the vault]", cond=function() return profile:isDonator() end, action=function(npc, player) if game:isTainted() then --- a/overload/mod/class/ItemsVaultDLC.lua +++ b/overload/mod/class/ItemsVaultDLC.lua @@ -106,7 +106,7 @@ function transferToVaultOffline(actor, o, cb_success) if not world.items_vault then world.items_vault = {} end - if #world.items_vault >= 3 then return end + if #world.items_vault >= 100 then return end world.items_vault[#world.items_vault+1] = {o=o, time=os.time()} @@ -334,15 +334,15 @@ function listVaultOffline() if not world.items_vault then world.items_vault = {} end - local done = {list={}, max=3} + local done = {list={}, max=100} for i, o in ipairs(world.items_vault) do done.list[#done.list+1] = { id_entity = i, name = o.o:getName{do_color=1, no_image=1}:toString(), desc = o.o:getDesc{do_color=1, no_image=1}:toString(), - usable = (os.time() - o.time) >= 3600, - sec_until = 3600 - (os.time() - o.time), + usable = (os.time() - o.time) >= 1, + sec_until = 1 - (os.time() - o.time), last_updated = o.time, } end --- a/overload/mod/dialogs/ItemsVaultOffline.lua +++ b/overload/mod/dialogs/ItemsVaultOffline.lua @@ -37,7 +37,7 @@ Dialog.init(self, ("Item's Vault (%d/%d)"):format(#self.iv.list, self.iv.max), game.w * 0.8, game.h * 0.8) - local txt = Textzone.new{width=math.floor(self.iw - 10), auto_height=true, text=[[Retrieve an item from the vault. When you place an item in the vault the paradox energies around it are so powerful you must wait one hour before retrieving it. + local txt = Textzone.new{width=math.floor(self.iw - 10), auto_height=true, text=[[Retrieve an item from the vault. #CRIMSON#Warning: while you *can* retrieve items made with previous versions of the game, no guarantee is given that the universe (or your character) will not explode.]]} self.c_list = ListColumns.new{width=math.floor(self.iw - 10), height=self.ih - 10 - txt.h - 20, scrollbar=true, sortable=true, columns={