ShopDreamUp AI ArtDreamUp
literature
Alcohol v1.0
Deviation Actions
Literature Text
class alcohol{
private int vision;
private int lag;
private int mental_defence;
private int happiness;
private int health;
public static void drink(person){
if ((happiness <= 11) || (person.status == emo) || (person.status == rebellious) || (person.status == fun)){
drinking(person);
}
}
public static void drinking(person){
for (int alcohol=0; alcohol < 0.7; alcohol = alcohol + 0.01) {
if (alcohol == 0.01) {
vision = vision - 1;
lag = 256ms;
mental_defence = mental_defence - 1;
happiness = happiness + (java.math.rand (10));
health = health - 1;
}
if (alcohol == 0.02) {
vision = vision - 2;
lag = 300ms;
mental_defence = mental_defence - 2;
happiness = happiness + (java.math.rand(20));
health = health - 2;
}
if (alcohol == 0.05) {
vision = vision - 5;
lag = 1000ms;
mental_defence = mental_defence - 5;
happiness = happiness - (java.math.rand(20));
health = health - 5;
}
if (alcohol == 0.1) {
vision = vision - 10;
lag = 2000ms;
mental_defence = mental_defence - 5;
happiness = happiness - (java.math.rand(10));
health = health - 10;
}
if (alcohol == 0.2) {
vision = 1;
lag = 3500ms;
mental_defence = 0;
happiness = 0;
health = health - 10
}
if (alcohol == 0.3) {
vision = 0;
lag = java.math.infinity;
health = health - (java.math.rand(20) + 10);
person.status = status.coma;
}
if (alcohol == 0.5) {
person = 0;
}
}
}
}
private int vision;
private int lag;
private int mental_defence;
private int happiness;
private int health;
public static void drink(person){
if ((happiness <= 11) || (person.status == emo) || (person.status == rebellious) || (person.status == fun)){
drinking(person);
}
}
public static void drinking(person){
for (int alcohol=0; alcohol < 0.7; alcohol = alcohol + 0.01) {
if (alcohol == 0.01) {
vision = vision - 1;
lag = 256ms;
mental_defence = mental_defence - 1;
happiness = happiness + (java.math.rand (10));
health = health - 1;
}
if (alcohol == 0.02) {
vision = vision - 2;
lag = 300ms;
mental_defence = mental_defence - 2;
happiness = happiness + (java.math.rand(20));
health = health - 2;
}
if (alcohol == 0.05) {
vision = vision - 5;
lag = 1000ms;
mental_defence = mental_defence - 5;
happiness = happiness - (java.math.rand(20));
health = health - 5;
}
if (alcohol == 0.1) {
vision = vision - 10;
lag = 2000ms;
mental_defence = mental_defence - 5;
happiness = happiness - (java.math.rand(10));
health = health - 10;
}
if (alcohol == 0.2) {
vision = 1;
lag = 3500ms;
mental_defence = 0;
happiness = 0;
health = health - 10
}
if (alcohol == 0.3) {
vision = 0;
lag = java.math.infinity;
health = health - (java.math.rand(20) + 10);
person.status = status.coma;
}
if (alcohol == 0.5) {
person = 0;
}
}
}
}
Probably won't compile, but the concept is there.
Comments18
Join the community to add your comment. Already a deviant? Log In
USHighways!theRoad.cross(aChicken)
I know, I know, it's vbscript. Who gives a damn, this was highly entertaining. ^_^
I know, I know, it's vbscript. Who gives a damn, this was highly entertaining. ^_^