mmb.content.drugs.Intoxicating Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multimachinebuilder Show documentation
Show all versions of multimachinebuilder Show documentation
Dependency for the MultiMachineBuilder, a voxel game about building an industrial empire in a finite world.
THIS RELEASE IS NOT PLAYABLE. To play the game, donwload from >ITCH.IO LINK HERE< or >GH releases link here<
/**
*
*/
package mmb.content.drugs;
import mmb.engine.chance.Chance;
/**
* An abstraction over various intoxicating items (AlcoPod, beer, vodka, wine, ethanol etc...)
* @author oskar
*/
public interface Intoxicating {
/**
* @return strength of the intoxicating effect of the item.
* A value of 1 means that the item carries 1 standard drink.
*/
public double alcoholicity();
/** @return the items to inject into inventory after drinking */
public Chance postdrink();
/** Called after alcohol consumption */
public default void effects() {
//unused
}
}