Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make retouch_object more consistent #133

Merged
merged 4 commits into from
Aug 7, 2023

Conversation

saltwaterterrapin
Copy link
Collaborator

Applying, throwing, and wielding stuff all worked slightly differently with regards to artifact blast, material hatred, and demons & silver. Furthermore, what things touch your skin was different in different places---you might wear something fine, then have to retouch your equipment for some reason and suddenly get blasted. Now, things are (hopefully) all consistent. In cases of contradiction, I tried to prioritize later and/or Evilhack-specific commits.

Direct skin contact is prevented in the following cases, all of which were sometimes the case already and sometimes weren't:
-if you're wearing gloves, you won't contact wielded/thrown/otherwise manipulated objects, or a worn shield
-if you're wearing the Hand of Vecna, you won't contact your left ring
-if you're wearing a shirt, you won't contact body armor or a cloak
-if you're wearing body armor, you won't contact a cloak

If you aren't directly contacting something, you won't suffer damage from its material, or suffer regen penalties as an orc/elf/drow wielding/wearing hated materials. This is unchanged from before.
Direct contact has no bearing on artifact blast, just like in vanilla. This is a change from how Evilhack has worked for years. Demons cannot suffer even indirect contact from silver. This is largely unchanged save the fixing of a few edge cases. If you touch an artifact made of a material you hate, you will be blasted if applicable, and material damage will occur separately if you directly contact the artifact.

Applying, throwing, and wielding stuff all worked slightly differently with regards to artifact blast, material hatred, and demons & silver. Furthermore, what things touch your skin was different in different places---you might wear something fine, then retouch your equipment and suddenly get blasted. Now, things are (hopefully) all consistent. In cases of contradiction, I tried to prioritize later and/or Evilhack-specific commits.
Direct skin contact is prevented in the following cases, all of which were sometimes the case already and sometimes weren't:
-if you're wearing gloves, you won't contact wielded/thrown/otherwise manipulated objects, or a worn shield
-if you're wearing the Hand of Vecna, you won't contact your left ring
-if you're wearing a shirt, you won't contact body armor or a cloak
-if you're wearing body armor, you won't contact a cloak
If you aren't directly contacting something, you won't suffer damage from its material, or suffer regen penalties as an orc/elf/drow wielding/wearing hated materials. This is unchanged from before.
Direct contact has no bearing on artifact blast, just like in vanilla. This is a change from how Evilhack has worked for years.
Demons cannot suffer even indirect contact from silver. This is largely unchanged save the fixing of a few edge cases.
If you touch an artifact made of a material you hate, you will be blasted if applicable, and material damage will occur separately if you directly contact the artifact.
If an artifact hates your kind, it shouldn't care about gloves.
In the course of testing the retouch_objects code, a bug was found in how taking off armor was handled when you had wings.
This had a simple one-line fix, but in the course of testing it, another bug was found in how armor was put *on* when you were winged, and more generally how hard body armor and big wings interacted with other kinds of flying.
Fixing this involved tinkering with the definition of Flying, which I'm not a huge fan of, but I tested different sources of flying and BFlying extensively after the changes, so here's hoping it holds up.
Make ^O dungeon overview show the Planes in the correct, randomized order.
@k21971
Copy link
Owner

k21971 commented Aug 7, 2023

Nice job on all of this!

@k21971 k21971 merged commit d65d502 into k21971:master Aug 7, 2023
3 checks passed
@saltwaterterrapin saltwaterterrapin deleted the touchup-touch branch August 9, 2023 15:33
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.

2 participants