Compare commits

...

2 Commits

Author SHA1 Message Date
Anna 3b111ac505
chore: add offset notes 2022-05-14 19:33:01 -04:00
Anna 7dc28697b7
fix: don't allow invalid import stains 2022-05-14 19:32:27 -04:00
2 changed files with 4 additions and 3 deletions

View File

@ -227,7 +227,7 @@ namespace Glamaholic {
return;
}
// Updated: 6.0
// Updated: 6.11 C98BC0
var editorInfo = *(IntPtr*) ((IntPtr) agent + 0x28);
if (editorInfo == IntPtr.Zero) {
return;
@ -237,7 +237,8 @@ namespace Glamaholic {
var current = CurrentPlate;
var usedStains = new Dictionary<(uint, uint), uint>();
// Updated: 6.0
// Updated: 6.11 C984CF
// current plate 6.11 C9AC9F
var slotPtr = (PlateSlot*) (editorInfo + 0x18);
var initialSlot = *slotPtr;
foreach (var (slot, item) in plate.Items) {

View File

@ -246,7 +246,7 @@ namespace Glamaholic.Ui {
continue;
}
var stainId = this.GetStainIdFromPart(part);
var stainId = item.IsDyeable ? this.GetStainIdFromPart(part) : (byte) 0;
items[slot.Value] = new SavedGlamourItem {
ItemId = item.RowId,
StainId = stainId,