Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final static String[] chance = {"1.9","2.5","5.3","8.4","10.4","12.3"};
- public String checkChancetoDie(int sc)
- {
- if (sc == 0)
- {
- return chance[0];
- }
- else if (sc == 1)
- {
- return chance[1];
- }
- else if (sc == 2)
- {
- return chance[2];
- }
- else if (sc == 3)
- {
- return chance[3];
- }
- else if (sc == 4)
- {
- return chance[4];
- }
- else if (sc >= 5)
- {
- return chance[5];
- }
- else return "Error";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement