Class: Yuki::Berries::Data

Inherits:
Object show all
Defined in:
docs/01500_Yuki.rb

Overview

Data describing a berry in the Berry system

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(time_to_grow, min_yield, max_yield, taste_info) ⇒ Data

Create a new berry

Parameters:

  • time_to_grow (Integer)

    number of hours the berry need to fully grow

  • min_yield (Integer)

    minimum quantity the berry can yield

  • max_yield (Integer)

    maximum quantity the berry can yield

  • taste_info (Hash{ Symbol => Integer})


280
281
# File 'docs/01500_Yuki.rb', line 280

def initialize(time_to_grow, min_yield, max_yield, taste_info)
end

Instance Attribute Details

#bitterInteger

Bitter factor of the berry

Returns:

  • (Integer)


253
254
255
# File 'docs/01500_Yuki.rb', line 253

def bitter
  @bitter
end

#dryInteger

Dry factor of the berry

Returns:

  • (Integer)


268
269
270
# File 'docs/01500_Yuki.rb', line 268

def dry
  @dry
end

#max_yieldInteger

Maximum amount of berry yield

Returns:

  • (Integer)


262
263
264
# File 'docs/01500_Yuki.rb', line 262

def max_yield
  @max_yield
end

#min_yieldInteger

Minimum amount of berry yield

Returns:

  • (Integer)


256
257
258
# File 'docs/01500_Yuki.rb', line 256

def min_yield
  @min_yield
end

#sourInteger

Sour factor of the berry

Returns:

  • (Integer)


259
260
261
# File 'docs/01500_Yuki.rb', line 259

def sour
  @sour
end

#spicyInteger

Spicy factor of the berry

Returns:

  • (Integer)


265
266
267
# File 'docs/01500_Yuki.rb', line 265

def spicy
  @spicy
end

#sweetInteger

Sweet factor of the berry

Returns:

  • (Integer)


271
272
273
# File 'docs/01500_Yuki.rb', line 271

def sweet
  @sweet
end

#time_to_growInteger

Time the berry take to grow

Returns:

  • (Integer)


274
275
276
# File 'docs/01500_Yuki.rb', line 274

def time_to_grow
  @time_to_grow
end