summaryrefslogtreecommitdiff
path: root/offline-item-storage-hack.patch
blob: daca7471b9a7e466476f4843c378c3444d22e29b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# 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={