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



320
321
# File 'docs/3_Studio.rb', line 320

def initialize(hash)
end

Instance Method Details

#not_shinyBoolean

Get the forbid shiny attribute

Returns:

  • (Boolean)


329
330
# File 'docs/3_Studio.rb', line 329

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)


325
326
# File 'docs/3_Studio.rb', line 325

def shiny(rate = rand)
end