Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
FTWArena wuxing formula
switch (aPhase) {
case "Fire":
switch (bPhase) {
case "Metal":
aLuck = aLuck + 5;
break;
case "Wood":
aLuck = aLuck + 3;
break;
case "Earth":
aLuck = aLuck - 3;
break;
case "Water":
aLuck = aLuck - 5;
break;
case "Dark":
aLuck = aLuck - 3;
break;
case "Light":
aLuck = aLuck + 3;
break;
}
break;
case "Water":
switch (bPhase) {
case "Fire":
aLuck = aLuck + 5;
break;
case "Metal":
aLuck = aLuck + 3;
break;
case "Wood":
aLuck = aLuck - 3;
break;
case "Earth":
aLuck = aLuck - 5;
break;
case "Dark":
aLuck = aLuck - 3;
break;
case "Light":
aLuck = aLuck + 3;
break;
}
break;
case "Wood":
switch (bPhase) {
case "Earth":
aLuck = aLuck + 5;
break;
case "Water":
aLuck = aLuck + 3;
break;
case "Fire":
aLuck = aLuck - 3;
break;
case "Metal":
aLuck = aLuck - 5;
break;
case "Dark":
aLuck = aLuck - 3;
break;
case "Light":
aLuck = aLuck + 3;
break;
}
break;
case "Earth":
switch (bPhase) {
case "Water":
aLuck = aLuck + 5;
break;
case "Fire":
aLuck = aLuck + 3;
break;
case "Metal":
aLuck = aLuck - 3;
break;
case "Wood":
aLuck = aLuck - 5;
break;
case "Dark":
aLuck = aLuck - 3;
break;
case "Light":
aLuck = aLuck + 3;
break;
}
break;
case "Metal":
switch (bPhase) {
case "Wood":
aLuck = aLuck + 5;
break;
case "Earth":
aLuck = aLuck + 3;
break;
case "Water":
aLuck = aLuck - 3;
break;
case "Fire":
aLuck = aLuck - 5;
break;
case "Dark":
aLuck = aLuck - 3;
break;
case "Light":
aLuck = aLuck + 3;
break;
}
break;
case "Dark":
switch (bPhase) {
case "Light":
aLuck = aLuck - 3;
break;
default:
aLuck = aLuck + 3;
break;
}
break;
case "Light":
switch (bPhase) {
case "Dark":
aLuck = aLuck + 3;
break;
default:
aLuck = aLuck - 3;
break;
}
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment