-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRS_ItemMaxLimit.rb
27 lines (27 loc) · 1006 Bytes
/
RS_ItemMaxLimit.rb
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
#================================================================
# The MIT License
# Copyright (c) 2020 biud436
# ---------------------------------------------------------------
# Free for commercial and non commercial use.
#================================================================
#==============================================================================
# ** RS_ItemMaxLimit
#==============================================================================
# Name : RS_ItemMaxLimit
# Author : biud436
# Version : 1.0.0 (2018.08.07)
#==============================================================================
$imported = {} if $imported.nil?
$imported["RS_ItemMaxLimit"] = true
class Game_Party < Game_Unit
alias xxxx_max_item_number max_item_number
def max_item_number(item)
number = 99
if item and item.note =~ /<(?:MAX LIMIT):[ ]*(\d+)>/i
number = $1.to_i || number
else
number = xxxx_max_item_number(item)
end
return number
end
end