Class: Yuki::Berries::Data
Overview
Data describing a berry in the Berry system
Instance Attribute Summary collapse
-
#bitter ⇒ Integer
Bitter factor of the berry.
-
#drain_rate ⇒ Integer
Moisture rating drained per hour.
-
#dry ⇒ Integer
Dry factor of the berry.
-
#max_yield ⇒ Integer
Maximum amount of berry yield.
-
#min_yield ⇒ Integer
Minimum amount of berry yield.
-
#sour ⇒ Integer
Sour factor of the berry.
-
#spicy ⇒ Integer
Spicy factor of the berry.
-
#sweet ⇒ Integer
Sweet factor of the berry.
-
#time_to_grow ⇒ Integer
Time the berry take to grow.
Instance Method Summary collapse
-
#initialize(time_to_grow, min_yield, max_yield, drain_rate, taste_info) ⇒ Data
constructor
Create a new berry.
Constructor Details
#initialize(time_to_grow, min_yield, max_yield, drain_rate, taste_info) ⇒ Data
Create a new berry
1648 1649 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1648 def initialize(time_to_grow, min_yield, max_yield, drain_rate, taste_info) end |
Instance Attribute Details
#bitter ⇒ Integer
Bitter factor of the berry
1617 1618 1619 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1617 def bitter @bitter end |
#drain_rate ⇒ Integer
Moisture rating drained per hour
1641 1642 1643 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1641 def drain_rate @drain_rate end |
#dry ⇒ Integer
Dry factor of the berry
1632 1633 1634 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1632 def dry @dry end |
#max_yield ⇒ Integer
Maximum amount of berry yield
1626 1627 1628 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1626 def max_yield @max_yield end |
#min_yield ⇒ Integer
Minimum amount of berry yield
1620 1621 1622 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1620 def min_yield @min_yield end |
#sour ⇒ Integer
Sour factor of the berry
1623 1624 1625 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1623 def sour @sour end |
#spicy ⇒ Integer
Spicy factor of the berry
1629 1630 1631 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1629 def spicy @spicy end |
#sweet ⇒ Integer
Sweet factor of the berry
1635 1636 1637 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1635 def sweet @sweet end |
#time_to_grow ⇒ Integer
Time the berry take to grow
1638 1639 1640 |
# File 'docs/4_Systems_003_Map_Engine.rb', line 1638 def time_to_grow @time_to_grow end |