This repository has been archived by the owner on Jan 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Edit inventory quantities, probe also reports it now.
- Loading branch information
Showing
3 changed files
with
99 additions
and
17 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
package main | ||
|
||
type Args struct { | ||
InPath string `arg:"-i, required" help:"Path of input save file."` | ||
OutPath string `arg:"-o" help:"Path of output save file."` | ||
XP int `arg:"--xp" help:"Set XP."` | ||
Galleons int `arg:"--galleons" help:"Set Galleons."` | ||
FirstName string `arg:"--first-name" help:"Set character first name."` | ||
Surname string `arg:"--last-name" help:"Set character last name."` | ||
InventorySize int `arg:"--inventory-size" help:"Set inventory size."` | ||
Probe bool `arg:"-p" help:"Probe save file and exit."` | ||
InPath string `arg:"-i, required" help:"Path of input save file."` | ||
OutPath string `arg:"-o" help:"Path of output save file."` | ||
XP int `arg:"--xp" help:"Set XP."` | ||
Galleons int `arg:"--galleons" help:"Set Galleons."` | ||
FirstName string `arg:"--first-name" help:"Set character first name."` | ||
Surname string `arg:"--last-name" help:"Set character last name."` | ||
InventorySize int `arg:"--inventory-size" help:"Set inventory size."` | ||
Probe bool `arg:"-p" help:"Probe save file and exit."` | ||
ItemQuantities []string `arg:"--item-quantities" help:"Set quantities of inventory items. <item ID> <quantity> pairs separated by spaces."` | ||
ParsedItemQuants []*ItemPairs `arg:"-"` | ||
} | ||
|
||
type ItemPairs struct { | ||
ItemID string | ||
Quantity int64 | ||
} |