Open
Conversation
Add backpack winter protection check in EfectoFrio so an equipped backpack with Invernal attribute prevents cold effects. Large refactor of EquiparInvItem/Desequipar: reformat parameter list, tidy variable declarations/spacing, consolidate backpack/armor/skin equip logic, and add skin-aware checks when determining animations/requirements. Fixes: ensure ResistenciaMagica update uses 0 comparison, correct WriteUpdateRM calls, improve flow for equipping/desequipping items and skins, and enhance error logging in the equip handler.
Support backpack-specific properties and apply backpack effects across systems: load new backpack fields (Real, Caos, LeadersOnly, ResistenciaMagica, Invernal, Camouflage) in FileIO; update DesequiparSkin to handle backpack animations and requirements; call Desequipar for backpack on death; include backpack ResistenciaMagica in MR calculations (NPC and player); account for backpack defense when computing physical damage (NPC and PvP); consider backpack Camouflage for Hunter hide mechanic; and apply backpack MR to area spell damage. Also includes minor tidying/format fixes.
Replace the skins wings type with a backpack skin type and update related inventory/equip logic. Changes: - Enum and type field renamed from otSkinsWings -> otSkinBackpacks in Declares.bas and usages across the codebase. - Removed obsolete ObjIndexWindsEquipped member and consolidated backpack-equipped fields in the skin inventory type. - Updated FileIO to load backpack-skin objects correctly. - Updated InvUsuario: equip/unequip, use, and CanEquipSkin logic to handle backpack skin requirements and messages; cleaned up variable declarations and control flow. - Fixed a bug comparing ResistenciaMagica against an undefined variable by comparing to 0. - Adjusted messaging to use the correct Name property capitalization when notifying target users. - Fixed combat logic to reference the equipped backpack defensives (BackPack/Defensa) and scope the .invent reference consistently. These changes implement backpack skins and correct related inventory, equip checks, messaging, and combat defense calculations.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
-Added normal item characteristics to backpacks