BarDrink
in package
Provides details about bar drinks
Table of Contents
Constants
- SALVENE_SWAMP_SODA = 'Salvene Swamp Soda'
- DRINK_NAMES = ['Spooky Midnight Special', 'Azoolian Sunrise Special', 'Big Momma Mojito', 'Cosmic Crush', 'Federal Berry Fizz', 'Flux Punch', 'Holy Hand Squeezed Gimlet', 'Little Julep Torpedo', 'Medium Cargo Cherry Chiller', 'Pod Giver', 'Stellar Side Car', 'Smuggler\'s Salty Swizzler', 'Alskant Space Shandy', 'Creonti "Big Daiquiri"', 'Human Bourbon Bruiser', 'Ik\'Thorne Buttery Burst', self::SALVENE_SWAMP_SODA, 'Thevian Vodka Vortex', 'West Quadrant Colada', 'Nijarin Ion Martini']
- SPECIAL_DRINK_MESSAGES = ['Spooky Midnight Special' => 'Suddenly the secrets of the universe become manifestly clear and you are at peace.', 'Azoolian Sunrise Special' => 'At the bottom of the glass, you see a reflection of the best trader in the universe, and it is you.']
Methods
- getAll() : array<string|int, string>
- Returns the entire list of bar drinks.
- getCommon() : array<string|int, string>
- Returns the bar drink list with special drinks removed.
- getSpecial() : array<string|int, string>
- Returns the list of special bar drinks.
- getSpecialMessage() : string
- Returns the message displayed to the player when they buy a special bar drink with the given name.
- isSpecial() : bool
Constants
SALVENE_SWAMP_SODA
public
mixed
SALVENE_SWAMP_SODA
= 'Salvene Swamp Soda'
DRINK_NAMES
private
mixed
DRINK_NAMES
= ['Spooky Midnight Special', 'Azoolian Sunrise Special', 'Big Momma Mojito', 'Cosmic Crush', 'Federal Berry Fizz', 'Flux Punch', 'Holy Hand Squeezed Gimlet', 'Little Julep Torpedo', 'Medium Cargo Cherry Chiller', 'Pod Giver', 'Stellar Side Car', 'Smuggler\'s Salty Swizzler', 'Alskant Space Shandy', 'Creonti "Big Daiquiri"', 'Human Bourbon Bruiser', 'Ik\'Thorne Buttery Burst', self::SALVENE_SWAMP_SODA, 'Thevian Vodka Vortex', 'West Quadrant Colada', 'Nijarin Ion Martini']
SPECIAL_DRINK_MESSAGES
private
mixed
SPECIAL_DRINK_MESSAGES
= ['Spooky Midnight Special' => 'Suddenly the secrets of the universe become manifestly clear and you are at peace.', 'Azoolian Sunrise Special' => 'At the bottom of the glass, you see a reflection of the best trader in the universe, and it is you.']
Methods
getAll()
Returns the entire list of bar drinks.
public
static getAll() : array<string|int, string>
Return values
array<string|int, string>getCommon()
Returns the bar drink list with special drinks removed.
public
static getCommon() : array<string|int, string>
Return values
array<string|int, string>getSpecial()
Returns the list of special bar drinks.
public
static getSpecial() : array<string|int, string>
Return values
array<string|int, string>getSpecialMessage()
Returns the message displayed to the player when they buy a special bar drink with the given name.
public
static getSpecialMessage(string $drink) : string
Parameters
- $drink : string
Return values
stringisSpecial()
public
static isSpecial(string $drink) : bool
Parameters
- $drink : string