Skip to content

Commit

Permalink
9999: Do not equip cursed items.
Browse files Browse the repository at this point in the history
  • Loading branch information
GraionDilach committed Mar 20, 2024
1 parent a25110e commit 5763cd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions zgtweaks/library/equipinventory.tpa
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ BEGIN
ACTION_IF FILE_EXISTS_IN_GAME ~%currentitem_name%.itm~ BEGIN
COPY_EXISTING ~%currentitem_name%.itm~ ~override~
READ_SHORT 0x1c category
// DO NOT EQUIP CURSED ITEMS
READ_LONG 0x18 flags ELSE 0
flags = flags BAND 16
PATCH_IF (flags > 0) BEGIN
SET category = (0 - 1)
END
// DO NOT EQUIP NONMAGIC JEWELLERY
PATCH_IF (category == 10 OR category == 1) BEGIN
READ_SHORT 0x68 abils
Expand Down
2 changes: 1 addition & 1 deletion zgtweaks/zgtweaks.tp2
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BACKUP ~weidu_external/zgtweaks/backup~ // location to store files for uninstall purposes
AUTHOR ~Graion Dilach~
VERSION ~1.12.1~
VERSION ~1.13~

ALWAYS
// do not convert Setup.tra files, those should be UTF8 already
Expand Down

0 comments on commit 5763cd2

Please sign in to comment.