#===============================================================================
# ■ Game Actor
#===============================================================================
class Game_Actor < Game_Battler
attr_accessor :ct
attr_accessor :ct_max
attr_accessor :ct_speed
attr_accessor :ct_wait
#--------------------------------------------------------------------------
# ● Iinitialize
#--------------------------------------------------------------------------
alias xas_ct_initialize initialize
def initialize(actor_id)
xas_ct_initialize(actor_id)
@ct_max = 100
@ct = @ct_max
@ct_speed = 1
@ct_wait = false
setup_initial_ct(actor_id)
end
#--------------------------------------------------------------------------
# ● Setup Initial CT
#--------------------------------------------------------------------------
def setup_initial_ct(actor_id)
ct_par = XAS_CT_SYSTEM::ACTOR_INITIAL_CT[actor_id]
if ct_par != nil
@ct_max = ct_par[0]
@ct_speed = ct_par[1]
@ct = @ct_max
end
end
#--------------------------------------------------------------------------
# ● CT
#--------------------------------------------------------------------------
def ct
n = [[@ct, 0].max, @ct_max].min
return n
end
#--------------------------------------------------------------------------
# ● CT Max
#--------------------------------------------------------------------------
def ct_max
n = [[@ct_max, 1].max, 9999].min
return n
end
#--------------------------------------------------------------------------
# ● CT Speed
#--------------------------------------------------------------------------
def ct_speed
n_speed = @ct_speed * @ct_max / 100
n = [[n_speed, 0].max, @ct_max].min
return n
end
end