Method: RPG::Class#initialize

Defined in:
lib/rgss3/rpg.rb

#initializeClass

Returns a new instance of Class.



411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
# File 'lib/rgss3/rpg.rb', line 411

def initialize
  super
  @exp_params = [30,20,30,30]
  @params = Table.new(8,100)
  (1..99).each do |i|
    @params[0,i] = 400+i*50
    @params[1,i] = 80+i*10
    (2..5).each {|j| @params[j,i] = 15+i*5/4 }
    (6..7).each {|j| @params[j,i] = 30+i*5/2 }
  end
  @learnings = []
  @features.push(RPG::BaseItem::Feature.new(23, 0, 1))
  @features.push(RPG::BaseItem::Feature.new(22, 0, 0.95))
  @features.push(RPG::BaseItem::Feature.new(22, 1, 0.05))
  @features.push(RPG::BaseItem::Feature.new(22, 2, 0.04))
  @features.push(RPG::BaseItem::Feature.new(41, 1))
  @features.push(RPG::BaseItem::Feature.new(51, 1))
  @features.push(RPG::BaseItem::Feature.new(52, 1))
end