Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module RPG
- class Weapon
- alias new_initialize initialize
- def initialize
- new_initialize
- @initial_level = 1
- @final_level = 99
- @exp_basis = 30
- @exp_inflation = 30
- end
- attr_accessor :initial_level
- attr_accessor :final_level
- attr_accessor :exp_basis
- attr_accessor :exp_inflation
- attr_accessor :bonded_actor_id
- end
- end
- class Scene_Equip
- def bond_weapon(item) # fyi b_item stands for bonded item #
- # First Duplicate the object #
- b_item = item.dup
- # Set the id to the new array id :IE: data_b_weapons #
- b_item.id = $data_b_weapons.size
- # Bond said item #
- b_item.b_actor_id = @actor.id
- # Change the name :3 #
- if item.name
- if b_item.bonded_actor_id != @actor.id
- b_item.name = @actor.name + "'s " + item.name
- end
- end
- # put the Weapon at the end of data_b_weapons #
- $data_b_weapons[b_item.id] = b_item
- # return the bonded item for use #
- return b_item
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement