Commit Graph
66 Commits
Author SHA1 Message Date
Strangerke ff3682aae1 EFH: Fix various crashes when exiting in the middle of an interaction 2024-02-07 00:09:15 +01:00
Strangerke 9ad078e3a7 EFH: Fix two original bugs in attack code (reaction text) 2023-04-30 21:44:08 +01:00
Strangerke f75da6e410 EFH: Fix an original bug in attack reaction 2023-04-30 18:29:53 +01:00
Strangerke f8883f9867 EFH: Fix 3 Coverity issues 2023-02-25 09:22:52 +01:00
Strangerke 29ab18020f EFH: Remove trailing spaces 2023-02-12 07:55:55 +01:00
Strangerke 1b313da6cf EFH: Add some safeguards to avoid potential out of bonds reads and negative array index 2023-02-07 22:58:06 +01:00
Strangerke 60e41997b2 EFH: Rewrite prepareStatusRightWindowIndexes() in order to stop depending on out of bond reads 2023-02-06 23:16:34 +01:00
Strangerke 6e9232761f EFH: Fix an accidental fall through pointed by digital, remove a useless check 2023-02-06 09:11:03 +01:00
D G Turner 95bf4b15b3 EFH: Fix Most Remaining GCC Compiler Warnings
Two warnings of -Wcast-qual remain, but these are problematic to fix
with major refactoring of script parser.
2023-02-06 03:57:01 +00:00
Strangerke a24acf909d EFH: Some renaming and comments 2023-02-05 21:30:50 +01:00
Strangerke 3a68ef3cf1 EFH: Simplify code in addNewOpponents, add a comment in useObject() about the description of a cure to being frozen 2023-02-05 21:30:50 +01:00
Strangerke fdd742bfbf EFH: refactor TeamMonster 2023-02-05 21:30:50 +01:00
Strangerke 598a669091 EFH: Refactor TeamChar 2023-02-05 21:30:49 +01:00
Strangerke c6f3e50a28 EFH: Rename 3 previously unknown variables 2023-02-05 21:30:49 +01:00
Strangerke 103b590d07 EFH: Remove useless parameter from setMapMonsterAggressivenessAndMovementType(), simplify more code 2023-02-05 21:30:49 +01:00
Strangerke 21ea9c9729 EFH: Start making code less verbose, remove a useless parameter to getEquipmentDefense() 2023-02-05 21:30:49 +01:00
Strangerke de2f2390ee EFH: Introduce getArticle(), some renaming 2023-02-05 21:30:49 +01:00
Strangerke 956913fbbe EFH: Add brackets for look consistency 2023-02-05 21:30:48 +01:00
Strangerke 207bbbbbbf EFH: Turn some debug into debugC() 2023-02-05 21:30:48 +01:00
Strangerke 6c027c0373 EFH: Some renaming 2023-02-05 21:30:48 +01:00
Strangerke f52852512e EFH: Implementation of generateSound2 (based on assembly, no idea about how it should sound like on real hardware) 2023-02-05 21:30:48 +01:00
Strangerke a95b4960e0 EFH: Split handleFight_MobstersAttack out of handleFight() 2023-02-05 21:30:47 +01:00
Strangerke 03746ad322 EFH: some renaming in handleFight_lastAction_A, invert some if statement to reduce code depth 2023-02-05 21:30:47 +01:00
Strangerke 0b9d9b1446 EFH: Rename displayEncounterInfo() 2023-02-05 21:30:47 +01:00
Strangerke f997af9702 EFH: Fix (hopefully) several Clang warnings 2023-02-05 21:30:47 +01:00
Strangerke 8f7bf6b265 EFH: rewrite the pre-loading of "map" files, related refactoring 2023-02-05 21:30:47 +01:00
Strangerke a0ae5cb427 EFH: Move handleDamageOnArmor to fight.cpp 2023-02-05 21:30:47 +01:00
Strangerke ba52ee0cc7 EFH: rename handleDamageOnArmor() and getTeamAttackRoundPlans(), validate two functions 2023-02-05 21:30:47 +01:00
Strangerke adc85ef185 EFH: More validations and renaming 2023-02-05 21:30:46 +01:00
Strangerke b9424bd35d EFH: Add safeguards in transitionMap() and setSpecialTechZone(), move selectMonsterGroup() to fight.cpp, validate some more functions and renaming 2023-02-05 21:30:46 +01:00
Strangerke e8fed6ff3b EFH: Validate 4 more functions, fix a bug in chooseCharacterToReplace() 2023-02-05 21:30:46 +01:00
Strangerke ddb0cc8dbe EFH: rename determineTeamTarget(), fix issues in it 2023-02-05 21:30:46 +01:00
Strangerke 789917e174 EFH: Fix issues in getDeathTypeDescription, renaming 2023-02-05 21:30:46 +01:00
Strangerke 2ec85960ad EFH: Validate more functions, renaming 2023-02-05 21:30:46 +01:00
Strangerke 90e16512d5 EFH: Fix CppCheck warnings, add some comments, validate loadPlacesFile() 2023-02-05 21:30:46 +01:00
Strangerke d6650f6ca3 EFH: Validate addNewOpponents(), some renaming 2023-02-05 21:30:46 +01:00
Strangerke ac5da028ef EFH: Renaming 2023-02-05 21:30:46 +01:00
Strangerke b8544bb762 EFH: Fix a couple of issues in sub1C956, renaming 2023-02-05 21:30:46 +01:00
Strangerke 0e6a5d9d0c EFH: Fix bug in characterSearchesMonsterCorpse() 2023-02-05 21:30:46 +01:00
Strangerke a2e496f783 EFH: Add a new enum, validate some more functions, some renaming 2023-02-05 21:30:46 +01:00
Strangerke a5407440f4 EFH: Validate one more function, renaming 2023-02-05 21:30:46 +01:00
Strangerke 1f15de9b97 EFH: Move getTeamMonsterAnimId to fight.cpp (and validate it), some renaming in script_parse 2023-02-05 21:30:45 +01:00
Strangerke 3dbb8bb1a0 EFH: Fix implementation of checkSpecialItemsOnCurrentPlace(), modify displayCharacterInformationOrSkills() so it doesn't rely on out of bonds reads, validate some functions and add comments 2023-02-05 21:30:44 +01:00
Strangerke cb8897d782 EFH: More renaming 2023-02-05 21:30:44 +01:00
Strangerke 8f3ad37290 EFH: Fix a bug in handleFight_lastAction_A, validate multiple functions, renaming 2023-02-05 21:30:44 +01:00
Strangerke 7122fd549b EFH: More renaming 2023-02-05 21:30:44 +01:00
Strangerke 231a5bca12 EFH: Fix bug in tryToggleEquipped, renaming and validation of some more functions 2023-02-05 21:30:44 +01:00
Strangerke 69e5fb04cb EFH: Validate 2 functions, renaming 2023-02-05 21:30:44 +01:00
Strangerke 594156ae64 EFH: Fix a bug in handleFight, fix handleFight_lastAction_U, rename (between others) useObject() 2023-02-05 21:30:44 +01:00
Strangerke 204f23ba1b EFH: refactor the use of InvObject._stat1, fix a bug in hasAdequateDefense_2(), in sub19E2E() and in displayCharacterSummary() 2023-02-05 21:30:44 +01:00