diff options
author | B. Stack <bgstack15@gmail.com> | 2024-03-12 22:11:46 -0400 |
---|---|---|
committer | B. Stack <bgstack15@gmail.com> | 2024-03-12 22:11:46 -0400 |
commit | cc820c07dcdbb729dc948c6ae30fb1d17d2695e3 (patch) | |
tree | 5a75125be9efb6f5b161767160765f97a6e794a7 /srb.py | |
parent | progress for day (diff) | |
download | srb_lib-cc820c07dcdbb729dc948c6ae30fb1d17d2695e3.tar.gz srb_lib-cc820c07dcdbb729dc948c6ae30fb1d17d2695e3.tar.bz2 srb_lib-cc820c07dcdbb729dc948c6ae30fb1d17d2695e3.zip |
worked on levels and levelsets
Diffstat (limited to 'srb.py')
-rwxr-xr-x | srb.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -49,6 +49,7 @@ parser.add_argument("--get-purchased-weapons",action="store_true",help="Print cu parser.add_argument("--add-purchased-weapons",action="append",help="For profile, add these purchased weapons. Can be used multiple times.") parser.add_argument("--remove-purchased-weapons",action="append",help="For profile, add these purchased weapons. Can be used multiple times.") parser.add_argument("--get-level",help="Print status for this level for profile.") +parser.add_argument("--get-levelset",help="Print status for this levelset for profile.") parser.add_argument("--get-name",action="store_true",help="Print name for profile.") parser.add_argument("--set-name",help="Set name for profile.") parser.add_argument("--get-profile-in-use",action="store_true",help="Print if profile is in use.") @@ -78,7 +79,7 @@ profile_id = args.profile #print(f"profile_id={profile_id}") # WORKHERE: new actions that need --profile must be added here. -if not profile_id and (args.get_money or args.set_money or args.get_weapon or args.set_weapon or args.get_level or args.get_name or args.set_name or args.get_profile_in_use or args.get_purchased_weapons or args.get_tutorial_completed or args.add_purchased_weapons or args.remove_purchased_weapons or args.get_health or args.get_stunt or args.get_gun or args.set_health or args.set_stunt or args.set_gun): +if not profile_id and (args.get_money or args.set_money or args.get_weapon or args.set_weapon or args.get_level or args.get_name or args.set_name or args.get_profile_in_use or args.get_purchased_weapons or args.get_tutorial_completed or args.add_purchased_weapons or args.remove_purchased_weapons or args.get_health or args.get_stunt or args.get_gun or args.set_health or args.set_stunt or args.set_gun or args.get_levelset): ferror("Warning: Cannot perform most actions without --profile. Not all tasks may run.") else: if args.get_money: @@ -105,6 +106,8 @@ else: srb_lib.write_file(args.file,0,data) if args.get_level: print(f"Profile {profile_id} has level {args.get_level} status {srb_lib.get_level_status(args.file,profile_id,args.get_level)}") + if args.get_levelset: + print(f"Profile {profile_id} has levelset {args.get_levelset} status {srb_lib.get_levelset_status(args.file,profile_id,args.get_levelset)}") if args.get_name: print(f"Profile {profile_id} has name {srb_lib.get_name(args.file,profile_id)}") if args.set_name: |