Skip to content

Feature winter clothes to backpacks#1188

Open
Centorios wants to merge 4 commits intomasterfrom
feature_WinterClothesToBackpacks
Open

Feature winter clothes to backpacks#1188
Centorios wants to merge 4 commits intomasterfrom
feature_WinterClothesToBackpacks

Conversation

@Centorios
Copy link
Collaborator

-Added normal item characteristics to backpacks

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant