Advertisement
Holy87

Stile del personaggio

Jan 15th, 2015
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.83 KB | None | 0 0
  1. class Game_Actor < Game_Battler
  2.   #--------------------------------------------------------------------------
  3.   # * Restituisce il tipo di stile del personaggio
  4.   #--------------------------------------------------------------------------
  5.   def style
  6.     return :barehand if weapon_wearing == 0
  7.     return :dual if weapon_wearing == 2
  8.     return :two_hand if $data_weapons[@weapon_id].two_handed
  9.     return :single if @armor1_id == 0
  10.     return :sword_and_shield
  11.   end
  12.   #--------------------------------------------------------------------------
  13.   # * Restituisce il numero di armi equipaggiate
  14.   #--------------------------------------------------------------------------
  15.   def weapon_wearing
  16.     weapons = 0
  17.     weapons += 1 if @weapon_id != 0
  18.     weapons += 1 if @armor1_id != 0 && two_swords_style
  19.     return weapons
  20.   end
  21. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement