SHARE
TWEET

Stile del personaggio

Holy87 Jan 15th, 2015 192 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top