Skip to content

Instantly share code, notes, and snippets.

@Jimshii
Created May 23, 2012 16:40
Show Gist options
  • Save Jimshii/2776275 to your computer and use it in GitHub Desktop.
Save Jimshii/2776275 to your computer and use it in GitHub Desktop.
nwe shit
import java.util.Random;
public class Character {
static String name;
static int health;
static int mana;
static int gold;
static int xp;
static int attack;
static int level;
public static void setStats() {
//setHealth
health = 10;
//setHumanManaCap
Random generator = new Random();
int ranNumber = generator.nextInt(10) + 1;
mana = ranNumber;
//setGold
gold = 0;
//setExpandLevel
xp = 0;
level = 0;
//setAttack
int ranNum = generator.nextInt(10) + 1;
attack = ranNum;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment