Class: Studio::Group::Encounter::LevelSetup

Inherits:
Object
  • Object
show all
Defined in:
docs/3_Studio.rb

Overview

Data class helping to know the level setup of a creature while picking its level from group

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ LevelSetup

Create a new level setup

Parameters:

  • hash (Hash)


360
361
# File 'docs/3_Studio.rb', line 360

def initialize(hash)
end

Instance Attribute Details

#range ⇒ Range (readonly)

Get the level range (to give to a rand function) to get the final level of the creature

Returns:

  • (Range)


357
358
359
# File 'docs/3_Studio.rb', line 357

def range
  @range
end

Instance Method Details

#repel_rejected(actor_level) ⇒ Boolean

Tell if that level setup makes the encounter rejected by repel

Parameters:

  • actor_level (Integer)

Returns:

  • (Boolean)


365
366
# File 'docs/3_Studio.rb', line 365

def repel_rejected(actor_level)
end