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)


339
340
# File 'docs/3_Studio.rb', line 339

def initialize(hash)
end

Instance Attribute Details

#rangeRange (readonly)

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

Returns:

  • (Range)


336
337
338
# File 'docs/3_Studio.rb', line 336

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)


344
345
# File 'docs/3_Studio.rb', line 344

def repel_rejected(actor_level)
end

#strong_selected(actor_level) ⇒ Boolean

Tell if that level setup makes the encounter being selected because actor is weaker

Parameters:

  • actor_level (Integer)

Returns:

  • (Boolean)


349
350
# File 'docs/3_Studio.rb', line 349

def strong_selected(actor_level)
end