Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
- # DRG Item Passive Stat VX
- # Version: 1.00
- # Author : LiTTleDRAgo
- #:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:=:
- #==============================================================================
- # ** Game_Party
- #------------------------------------------------------------------------------
- # This class handles the party. It includes information on amount of gold
- # and items. Refer to "$game_party" for the instance of this class.
- #==============================================================================
- class Game_Party
- #--------------------------------------------------------------------------
- # * ITEM STAT
- #--------------------------------------------------------------------------
- ITEM_STAT = {
- # 0 => [:hp, :sp, :str, :dex, :agi, :int, :atk, :pdef, :mdef, :eva],
- 1 => [ 0, 0, 0, 1, 1, 0, 0, 1, 0, 10],
- 2 => [ 0, 0, 0, 1, 1, 0, 0, 1, 0, 10],
- }
- #--------------------------------------------------------------------------
- # * ARMOR AND WEAPON
- #--------------------------------------------------------------------------
- WEAPON_STAT = {
- 1 => [ 30, 0, 0, 0, 0, 40, 53, 34, 30, 10],
- }
- ARMOR_STAT = {
- 1 => [ 300, 0, 0, 0, 0, 40, 53, 34, 30, 10],
- }
- #--------------------------------------------------------------------------
- # * END CONFIG
- #--------------------------------------------------------------------------
- #--------------------------------------------------------------------------
- # * Item Stat Plus
- #--------------------------------------------------------------------------
- def item_stat_plus
- summ = [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
- party = defined?(Window_ActorCommand) ? @members : @actors
- summ.each_index {|s|
- @items.each_pair{|x,y| summ[s]+=((ITEM_STAT[x]||[])[s]||0)*@items[x]}
- @weapons.each_pair{|x,y| summ[s]+=((WEAPON_STAT[x]||[])[s]||0)*@weapons[x]}
- @armors.each_pair{|x,y| summ[s]+=((ARMOR_STAT[x]||[])[s]||0)*@armors[x]}
- party.each{|actor| summ[s]+=((WEAPON_STAT[actor.weapon_id]||[])[s]||0)
- summ[s]+=((ARMOR_STAT[actor.armor1_id]||[])[s]||0)
- summ[s]+=((ARMOR_STAT[actor.armor2_id]||[])[s]||0)
- summ[s]+=((ARMOR_STAT[actor.armor3_id]||[])[s]||0)
- summ[s]+=((ARMOR_STAT[actor.armor4_id]||[])[s]||0)}}
- return summ
- end
- end
- #==============================================================================
- # ** Game_Actor
- #------------------------------------------------------------------------------
- # This class handles the actor. It's used within the Game_Actors class
- # ($game_actors) and refers to the Game_Party class ($game_party).
- #==============================================================================
- class Game_Actor
- #--------------------------------------------------------------------------
- # * Alias Method
- #--------------------------------------------------------------------------
- unless method_defined? (:drg190_maxhp)
- alias_method :drg190_maxhp, :maxhp
- alias_method :drg190_maxsp, :maxsp if method_defined? (:maxsp)
- alias_method :drg190_maxmp, :maxmp if method_defined? (:maxmp)
- alias_method :drg190_str, :str
- alias_method :drg190_dex, :dex
- alias_method :drg190_agi, :agi
- alias_method :drg190_int, :int
- alias_method :drg190_atk, :atk
- alias_method :drg190_pdef, :pdef
- alias_method :drg190_mdef, :mdef
- alias_method :drg190_eva, :eva
- end
- #--------------------------------------------------------------------------
- # * Get Basic Stat
- #--------------------------------------------------------------------------
- def maxhp(*args) drg190_maxhp(*args)+$game_party.item_stat_plus[0] end
- def maxsp(*args) drg190_maxsp(*args)+$game_party.item_stat_plus[1] end
- def maxmp(*args) drg190_maxmp(*args)+$game_party.item_stat_plus[1] end
- def str(*args) drg190_str(*args) +$game_party.item_stat_plus[2] end
- def dex(*args) drg190_dex(*args) +$game_party.item_stat_plus[3] end
- def agi(*args) drg190_agi(*args) +$game_party.item_stat_plus[4] end
- def int(*args) drg190_int(*args) +$game_party.item_stat_plus[5] end
- def atk(*args) drg190_atk(*args) +$game_party.item_stat_plus[6] end
- def pdef(*args) drg190_pdef(*args) +$game_party.item_stat_plus[7] end
- def mdef(*args) drg190_mdef(*args) +$game_party.item_stat_plus[8] end
- def eva(*args) drg190_eva(*args) +$game_party.item_stat_plus[9] end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement