-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
632b9b1
commit 6ad3b13
Showing
13 changed files
with
363 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# ============================================ | ||
# Mario Party Toolkit | ||
# Author: Nayla Hanegan ([email protected]) | ||
# Date: 5/16/2024 | ||
# License: MIT | ||
# ============================================ | ||
|
||
from functions import * | ||
from codes.marioParty4 import * | ||
|
||
import pyperclip | ||
|
||
def battleCoins_mp4(p1, p2, p3, p4, p5): | ||
if not p1.get() and not p2.get() and not p3.get() and not p4.get() and not p5.get(): | ||
createDialog("Error", "error", "Please fill out atleast one box.", None) | ||
return | ||
|
||
p1Handicap = hex(int(p1.get()))[2:].zfill(2).upper() if p1.get() else "05" | ||
p2Handicap = hex(int(p2.get()))[2:].zfill(2).upper() if p2.get() else "0A" | ||
p3Handicap = hex(int(p3.get()))[2:].zfill(2).upper() if p3.get() else "14" | ||
p4Handicap = hex(int(p4.get()))[2:].zfill(2).upper() if p4.get() else "1F" | ||
p5Handicap = hex(int(p5.get()))[2:].zfill(2).upper() if p5.get() else "32" | ||
|
||
p1String = p1.get() if p1.get() != "" else "5" | ||
p2String = p2.get() if p2.get() != "" else "10" | ||
p3String = p3.get() if p3.get() != "" else "20" | ||
p4String = p4.get() if p4.get() != "" else "30" | ||
p5String = p5.get() if p5.get() != "" else "50" | ||
|
||
# Generate codes for blue and red spaces | ||
marioPartyFour = getBattleGame4(p1Handicap, p2Handicap, p3Handicap, p4Handicap, p5Handicap, p1String, p2String, p3String, p4String, p5String) | ||
|
||
# Replace placeholder in generated codes | ||
generatedCode = (marioPartyFour).strip() | ||
|
||
# Copy generated codes to clipboard | ||
pyperclip.copy(generatedCode) | ||
|
||
# Notify user about successful operation | ||
print("Generated codes copied to the clipboard.") | ||
createDialog("Operation Successful", "success", "Generated codes copied to clipboard!", None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# ============================================ | ||
# Mario Party Toolkit | ||
# Author: Nayla Hanegan ([email protected]) | ||
# Date: 5/16/2024 | ||
# License: MIT | ||
# ============================================ | ||
|
||
from functions import * | ||
from codes.marioParty5 import * | ||
|
||
import pyperclip | ||
|
||
def battleCoins_mp5(p1, p2, p3, p4, p5): | ||
if not p1.get() and not p2.get() and not p3.get() and not p4.get() and not p5.get(): | ||
createDialog("Error", "error", "Please fill out atleast one box.", None) | ||
return | ||
|
||
p1Handicap = hex(int(p1.get()))[2:].zfill(4).upper() if p1.get() else "0005" | ||
p2Handicap = hex(int(p2.get()))[2:].zfill(4).upper() if p2.get() else "000A" | ||
p3Handicap = hex(int(p3.get()))[2:].zfill(4).upper() if p3.get() else "0014" | ||
p4Handicap = hex(int(p4.get()))[2:].zfill(4).upper() if p4.get() else "001F" | ||
p5Handicap = hex(int(p5.get()))[2:].zfill(4).upper() if p5.get() else "0032" | ||
|
||
p1String = p1.get() if p1.get() != "" else "5" | ||
p2String = p2.get() if p2.get() != "" else "10" | ||
p3String = p3.get() if p3.get() != "" else "20" | ||
p4String = p4.get() if p4.get() != "" else "30" | ||
p5String = p5.get() if p5.get() != "" else "50" | ||
|
||
# Generate codes for blue and red spaces | ||
marioPartyFive = getBattleGame5(p1Handicap, p2Handicap, p3Handicap, p4Handicap, p5Handicap, p1String, p2String, p3String, p4String, p5String) | ||
|
||
# Replace placeholder in generated codes | ||
generatedCode = (marioPartyFive).strip() | ||
|
||
# Copy generated codes to clipboard | ||
pyperclip.copy(generatedCode) | ||
|
||
# Notify user about successful operation | ||
print("Generated codes copied to the clipboard.") | ||
createDialog("Operation Successful", "success", "Generated codes copied to clipboard!", None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# ============================================ | ||
# Mario Party Toolkit | ||
# Author: Nayla Hanegan ([email protected]) | ||
# Date: 5/16/2024 | ||
# License: MIT | ||
# ============================================ | ||
|
||
from functions import * | ||
from codes.marioParty6 import * | ||
|
||
import pyperclip | ||
|
||
def battleCoins_mp6(p1, p2, p3, p4, p5): | ||
if not p1.get() and not p2.get() and not p3.get() and not p4.get() and not p5.get(): | ||
createDialog("Error", "error", "Please fill out atleast one box.", None) | ||
return | ||
|
||
p1Handicap = hex(int(p1.get()))[2:].zfill(4).upper() if p1.get() else "0005" | ||
p2Handicap = hex(int(p2.get()))[2:].zfill(4).upper() if p2.get() else "000A" | ||
p3Handicap = hex(int(p3.get()))[2:].zfill(4).upper() if p3.get() else "0014" | ||
p4Handicap = hex(int(p4.get()))[2:].zfill(4).upper() if p4.get() else "001F" | ||
p5Handicap = hex(int(p5.get()))[2:].zfill(4).upper() if p5.get() else "0032" | ||
|
||
p1String = p1.get() if p1.get() != "" else "5" | ||
p2String = p2.get() if p2.get() != "" else "10" | ||
p3String = p3.get() if p3.get() != "" else "20" | ||
p4String = p4.get() if p4.get() != "" else "30" | ||
p5String = p5.get() if p5.get() != "" else "50" | ||
|
||
# Generate codes for blue and red spaces | ||
marioPartySix = getBattleGame6(p1Handicap, p2Handicap, p3Handicap, p4Handicap, p5Handicap, p1String, p2String, p3String, p4String, p5String) | ||
|
||
# Replace placeholder in generated codes | ||
generatedCode = (marioPartySix).strip() | ||
|
||
# Copy generated codes to clipboard | ||
pyperclip.copy(generatedCode) | ||
|
||
# Notify user about successful operation | ||
print("Generated codes copied to the clipboard.") | ||
createDialog("Operation Successful", "success", "Generated codes copied to clipboard!", None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# ============================================ | ||
# Mario Party Toolkit | ||
# Author: Nayla Hanegan ([email protected]) | ||
# Date: 5/16/2024 | ||
# License: MIT | ||
# ============================================ | ||
|
||
from functions import * | ||
from codes.marioParty7 import * | ||
|
||
import pyperclip | ||
|
||
def battleCoins_mp7(p1, p2, p3, p4, p5): | ||
if not p1.get() and not p2.get() and not p3.get() and not p4.get() and not p5.get(): | ||
createDialog("Error", "error", "Please fill out atleast one box.", None) | ||
return | ||
|
||
p1Handicap = hex(int(p1.get()))[2:].zfill(4).upper() if p1.get() else "0005" | ||
p2Handicap = hex(int(p2.get()))[2:].zfill(4).upper() if p2.get() else "000A" | ||
p3Handicap = hex(int(p3.get()))[2:].zfill(4).upper() if p3.get() else "0014" | ||
p4Handicap = hex(int(p4.get()))[2:].zfill(4).upper() if p4.get() else "001F" | ||
p5Handicap = hex(int(p5.get()))[2:].zfill(4).upper() if p5.get() else "0032" | ||
|
||
p1String = p1.get() if p1.get() != "" else "5" | ||
p2String = p2.get() if p2.get() != "" else "10" | ||
p3String = p3.get() if p3.get() != "" else "20" | ||
p4String = p4.get() if p4.get() != "" else "30" | ||
p5String = p5.get() if p5.get() != "" else "50" | ||
|
||
# Generate codes for blue and red spaces | ||
marioPartySeven = getBattleGame7(p1Handicap, p2Handicap, p3Handicap, p4Handicap, p5Handicap, p1String, p2String, p3String, p4String, p5String) | ||
|
||
# Replace placeholder in generated codes | ||
generatedCode = (marioPartySeven).strip() | ||
|
||
# Copy generated codes to clipboard | ||
pyperclip.copy(generatedCode) | ||
|
||
# Notify user about successful operation | ||
print("Generated codes copied to the clipboard.") | ||
createDialog("Operation Successful", "success", "Generated codes copied to clipboard!", None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.