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

Fixing monster type name overriding and somes improvements #389

Merged
merged 4 commits into from
May 27, 2022

Conversation

dudantas
Copy link
Contributor

@dudantas dudantas commented May 23, 2022

The real name of the monster was replaced by the name of the look, generating unexpected behavior and in a very specific scenario a crash (when two different monsters had the same "name")
Some improvements related to the creation of monsters and the verification of the monster name in getMonsterType, also preventing any unexpected behavior

@dudantas dudantas force-pushed the fix-monster-type-names-and-improvement branch from 7805768 to 131b036 Compare May 23, 2022 21:35
@sonarcloud
Copy link

sonarcloud bot commented May 23, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@dudantas dudantas merged commit 86e4a90 into main May 27, 2022
@dudantas dudantas deleted the fix-monster-type-names-and-improvement branch May 27, 2022 19:52
luan pushed a commit that referenced this pull request Jul 11, 2023
The real name of the monster was replaced by the name of the look, generating unexpected behavior and in a very specific scenario a crash (when two different monsters had the same "name")
Some improvements related to the creation of monsters and the verification of the monster name in getMonsterType, also preventing any unexpected behavior

New function: Creature::getTypeName(), for get real monster type name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants