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

typified character, npc and explosion stuff #78655

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

PatrikLundell
Copy link
Contributor

@PatrikLundell PatrikLundell commented Dec 19, 2024

Summary

None

Purpose of change

Get rid of usage of untyped coordinates, replacing it with typed ones instead. This time the remainder of character and npc, plus explosion.

Describe the solution

Replace untyped operation with typed ones, adjusting usages, and deleting orphaned untyped operation overloads.

Describe alternatives you've considered

Testing

There should be no functional changes, so there's nothing particular to test.
Loaded save, walked up ramp, jumped into car, drove through hay bales, apparently reinforces, as vehicle parts were destroyed, ran over zombie corpse with inventory, ran over turkey, smashed into stationary vehicle.
Nothing unexpected seen, apart from the reinforced hay bales, which happens occasionally.

Additional context

Started to try to deal with zones as well, but that's too big a mess to include here (not the least because relative and absolute coordinates are stored in the same untyped variables), and so backed out of it.

@PatrikLundell PatrikLundell marked this pull request as draft December 19, 2024 12:17
@github-actions github-actions bot requested a review from KorGgenT December 19, 2024 12:17
@github-actions github-actions bot added NPC / Factions NPCs, AI, Speech, Factions, Ownership Info / User Interface Game - player communication, menus, etc. Bionics CBM (Compact Bionic Modules) Vehicles Vehicles, parts, mechanics & interactions [C++] Changes (can be) made in C++. Previously named `Code` Monsters Monsters both friendly and unfriendly. Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. Mechanics: Enchantments / Spells Enchantments and spells json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Dec 19, 2024
@PatrikLundell PatrikLundell marked this pull request as ready for review December 19, 2024 12:47
@kevingranade kevingranade merged commit a9416b4 into CleverRaven:master Dec 19, 2024
35 of 45 checks passed
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Dec 20, 2024
@PatrikLundell PatrikLundell deleted the typify branch December 20, 2024 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions Bionics CBM (Compact Bionic Modules) [C++] Changes (can be) made in C++. Previously named `Code` Fields / Furniture / Terrain / Traps Objects that are part of the map or its features. Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions Mechanics: Enchantments / Spells Enchantments and spells Monsters Monsters both friendly and unfriendly. NPC / Factions NPCs, AI, Speech, Factions, Ownership Vehicles Vehicles, parts, mechanics & interactions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants