mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2026-02-16 20:47:43 +01:00
dasd
This commit is contained in:
parent
e27a194cc6
commit
145b64bb7a
17 changed files with 258 additions and 674 deletions
|
|
@ -29,18 +29,18 @@ public unsafe partial class RedrawManager
|
|||
|
||||
private ulong FlagSlotForUpdateDetourBase(nint drawObject, uint slotIdx, CharacterArmor* data, bool manual)
|
||||
{
|
||||
try
|
||||
{
|
||||
var slot = slotIdx.ToEquipSlot();
|
||||
Glamourer.Log.Verbose(
|
||||
$"Flagged slot {slot} of 0x{(ulong)drawObject:X} for update with {data->Set.Value}-{data->Variant} (Stain {data->Stain.Value}).");
|
||||
HandleEquipUpdate(drawObject, slot, ref *data, manual);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Glamourer.Log.Error($"Error invoking SlotUpdate:\n{ex}");
|
||||
}
|
||||
|
||||
// try
|
||||
// {
|
||||
// var slot = slotIdx.ToEquipSlot();
|
||||
// Glamourer.Log.Verbose(
|
||||
// $"Flagged slot {slot} of 0x{(ulong)drawObject:X} for update with {data->Set.Value}-{data->Variant} (Stain {data->Stain.Value}).");
|
||||
// HandleEquipUpdate(drawObject, slot, ref *data, manual);
|
||||
// }
|
||||
// catch (Exception ex)
|
||||
// {
|
||||
// Glamourer.Log.Error($"Error invoking SlotUpdate:\n{ex}");
|
||||
// }
|
||||
//
|
||||
return _flagSlotForUpdateHook.Original(drawObject, slotIdx, data);
|
||||
|
||||
//try
|
||||
|
|
|
|||
|
|
@ -48,15 +48,15 @@ public unsafe partial class RedrawManager
|
|||
else if (redrawOnEquality == 1 && _currentManipulations.TryGetDesign(identifier, out var save2))
|
||||
{
|
||||
PluginLog.Information($"Loaded weapon from current design for {identifier}.");
|
||||
switch (slot)
|
||||
{
|
||||
case 0:
|
||||
save2.Data.MainHand = new CharacterWeapon(weapon);
|
||||
break;
|
||||
case 1:
|
||||
save2.Data.OffHand = new CharacterWeapon(weapon);
|
||||
break;
|
||||
}
|
||||
//switch (slot)
|
||||
//{
|
||||
// case 0:
|
||||
// save2.MainHand = new CharacterWeapon(weapon);
|
||||
// break;
|
||||
// case 1:
|
||||
// save2.Data.OffHand = new CharacterWeapon(weapon);
|
||||
// break;
|
||||
//}
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue