Class: Studio::Group::Encounter::ShinySetup

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

Overview

Data class helping to know the shiny setup of a creature

Instance Method Summary collapse

Constructor Details

#initialize(hash) ⇒ ShinySetup

Create a new shiny setup

Parameters:

  • hash (Hash) —

    shiny setup info



341
342
# File 'docs/3_Studio.rb', line 341

def initialize(hash)
end

Instance Method Details

#not_shiny ⇒ Boolean

Get the forbid shiny attribute

Returns:

  • (Boolean)


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

def not_shiny
end

#shiny(rate = rand) ⇒ Boolean

Get the shiny attribute of the creature

Parameters:

  • rate (Float) (defaults to: rand) —

    current rate to guess the creature shiny rate

Returns:

  • (Boolean)


346
347
# File 'docs/3_Studio.rb', line 346

def shiny(rate = rand)
end