Class: Yuki::Berries::Data

Inherits:
Object show all
Defined in:
docs/4_Systems_003_Map_Engine.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, drain_rate, 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

  • drain_rate (Integer)

    moisture rating drain per hour

  • taste_info (Hash{ Symbol => Integer})


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

#bitterInteger

Bitter factor of the berry

Returns:

  • (Integer)


1617
1618
1619
# File 'docs/4_Systems_003_Map_Engine.rb', line 1617

def bitter
  @bitter
end

#drain_rateInteger

Moisture rating drained per hour

Returns:

  • (Integer)


1641
1642
1643
# File 'docs/4_Systems_003_Map_Engine.rb', line 1641

def drain_rate
  @drain_rate
end

#dryInteger

Dry factor of the berry

Returns:

  • (Integer)


1632
1633
1634
# File 'docs/4_Systems_003_Map_Engine.rb', line 1632

def dry
  @dry
end

#max_yieldInteger

Maximum amount of berry yield

Returns:

  • (Integer)


1626
1627
1628
# File 'docs/4_Systems_003_Map_Engine.rb', line 1626

def max_yield
  @max_yield
end

#min_yieldInteger

Minimum amount of berry yield

Returns:

  • (Integer)


1620
1621
1622
# File 'docs/4_Systems_003_Map_Engine.rb', line 1620

def min_yield
  @min_yield
end

#sourInteger

Sour factor of the berry

Returns:

  • (Integer)


1623
1624
1625
# File 'docs/4_Systems_003_Map_Engine.rb', line 1623

def sour
  @sour
end

#spicyInteger

Spicy factor of the berry

Returns:

  • (Integer)


1629
1630
1631
# File 'docs/4_Systems_003_Map_Engine.rb', line 1629

def spicy
  @spicy
end

#sweetInteger

Sweet factor of the berry

Returns:

  • (Integer)


1635
1636
1637
# File 'docs/4_Systems_003_Map_Engine.rb', line 1635

def sweet
  @sweet
end

#time_to_growInteger

Time the berry take to grow

Returns:

  • (Integer)


1638
1639
1640
# File 'docs/4_Systems_003_Map_Engine.rb', line 1638

def time_to_grow
  @time_to_grow
end