#=============================================================================== # # Yanfly Engine RD - Battler Stat: Barehand # Last Date Updated: 2009.05.14 # Level: Normal # # For those that would like to give their actors stronger strength when no # weapon is equipped, there is a barehand stat now. You can adjust how strong # an actor's barehanded multiplier will grow each level so that way, you don't # have your actors going over the top strong from the beginning. # #=============================================================================== # Updates: # ---------------------------------------------------------------------------- # o 2009.05.14 - Started script and finished. #=============================================================================== # Instructions #=============================================================================== # # Just scroll down below and adjust the rules. # #=============================================================================== # # Compatibility # - Alias: Game_Actor: base_atk # #=============================================================================== $imported = {} if $imported == nil $imported["BattlerStatBarehand"] = true module YE module BATTLE module STAT # This is the multiplier given to base attack when no weapon is equipped. BAREHAND_BASE_MULTIPLIER = 150 BAREHAND_PER_LEVEL_BOOST = 10 BARE_HAND_MAX_MULTIPLIER = 400 # This is the array listing actors who fight barehanded by default. BAREHAND_ACTORS = [1, 2] # This is the array of classes that can fight barehanded. BAREHAND_CLASSES = [1, 7] end end end #=============================================================================== # Editting anything past this point may potentially result in causing computer # damage, incontinence, explosion of user's head, coma, death, and/or halitosis. # Therefore, edit at your own risk. #=============================================================================== #=============================================================================== # Game_Actor #=============================================================================== class Game_Actor < Game_Battler #-------------------------------------------------------------------------- # alias base_atk #-------------------------------------------------------------------------- alias base_atk_bsb base_atk unless $@ def base_atk n = base_atk_bsb barehand_trait = self.barehanded? n = barehanded_multiplier(n) if barehand_trait return Integer(n) end #-------------------------------------------------------------------------- # bare handed multiplier #-------------------------------------------------------------------------- def barehanded_multiplier(value) multiplier = YE::BATTLE::STAT::BAREHAND_BASE_MULTIPLIER multiplier += YE::BATTLE::STAT::BAREHAND_PER_LEVEL_BOOST * (@level - 1) multiplier = [YE::BATTLE::STAT::BARE_HAND_MAX_MULTIPLIER, multiplier].min value *= multiplier value /= 100 return value end #-------------------------------------------------------------------------- # check barehanded #-------------------------------------------------------------------------- def barehanded? if self.weapons[0] == nil and self.weapons[1] == nil return true if YE::BATTLE::STAT::BAREHAND_ACTORS.include?(self.id) return true if YE::BATTLE::STAT::BAREHAND_CLASSES.include?(self.class.id) #--- if $imported["SubclassSelectionSystem"] if YE::SUBCLASS::PRIMARY_TRAITS_HASH.include?(self.class.id) check_hash = YE::SUBCLASS::PRIMARY_TRAITS_HASH[self.class.id] return true if check_hash.include?("barehanded") return true if check_hash.include?("barehands") end if self.subclass != nil if YE::SUBCLASS::SUBCLASS_TRAITS_HASH.include?(self.subclass.id) check_hash = YE::SUBCLASS::SUBCLASS_TRAITS_HASH[self.subclass.id] return true if check_hash.include?("barehanded") return true if check_hash.include?("barehands") end end end #--- end return false end end #=============================================================================== # # END OF FILE # #===============================================================================