Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package butka;
- import java.util.Random;
- public class RandomWeapon {
- static Random randInt = new Random();
- //Type, Size, Material, Bless/Curse, Quality
- static int[] weapon = {0, 0, 0, 0, 0};
- //Name, Quality mod, Enchant mod, Material mod, atk1, atk2, atk3
- static Object[] stats = {"", 0, 0, 0, 0, 0, 0};
- static String[] name = {"", "", "", ""};
- static int[] newWeapon(){
- weapon[0] = randInt.nextInt(3);
- weapon[1] = randInt.nextInt(10);
- weapon[2] = randInt.nextInt(10);
- weapon[3] = randInt.nextInt(10);
- weapon[4] = randInt.nextInt(10);
- return weapon;
- }
- static Object[] nameWeapon() {
- switch (weapon[0]){
- case 0:
- case 1:
- switch (weapon[4]){
- case 0:name[0]="Crude ";stats[1]=.8;break;
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:name[0]="";stats[1]=1;break;
- case 8:
- case 9:name[0]="Fine ";stats[1]=1.1;break;
- }
- break;
- case 2:
- }
- switch(weapon[3]) {
- case 0:stats[0]="Crude ";stats[4]=.8;break;
- case 1:
- case 2:
- case 3:
- case 4:
- case 5:
- case 6:
- case 7:stats[0]="";stats[4]=1;break;
- case 8:
- case 9:stats[0]="Blessed ";stats[4]=1.2;break;
- }
- return stats;
- }
- }
Add Comment
Please, Sign In to add comment