Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Game_Actor < Game_Battler
- #--------------------------------------------------------------------------
- # * Restituisce il tipo di stile del personaggio
- #--------------------------------------------------------------------------
- def style
- return :barehand if weapon_wearing == 0
- return :dual if weapon_wearing == 2
- return :two_hand if $data_weapons[@weapon_id].two_handed
- return :single if @armor1_id == 0
- return :sword_and_shield
- end
- #--------------------------------------------------------------------------
- # * Restituisce il numero di armi equipaggiate
- #--------------------------------------------------------------------------
- def weapon_wearing
- weapons = 0
- weapons += 1 if @weapon_id != 0
- weapons += 1 if @armor1_id != 0 && two_swords_style
- return weapons
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement