-
Notifications
You must be signed in to change notification settings - Fork 218
Fix Item usability in battle - Previously Albeleon 2.30 #1482
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
Conversation
|
I've checked and the following behavior exists in battles when the item is not "usable" RM2k:
RM2k3:
@CherryDT Maybe another rm2k3 bug here for you. |
29b896c to
674d96e
Compare
|
I've reimplemented this from scratch. Tested the behavior against both rm2k and rm2k3. All matching. I've opted to fix the rm2k3 class bug here. |
src/game_battlealgorithm.cpp
Outdated
| if (item.type == RPG::Item::Type_medicine) { | ||
| this->healing = true; | ||
| if (GetTarget()->GetType() == Game_Battler::Type_Ally && !static_cast<Game_Actor*>(GetTarget())->IsItemUsable(item.ID)) { | ||
| //No effect, but doesn't behave like a dodge or damage to set healing and success to true. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whitespace after //
|
Could you add a comment to Game_Battler:IsItemUsable which mentions this bug (that RPG2k3 only cares about actor_set for medicine in battle)? Better preserve this knowledge, if this is ever a problem later. |
|
Another thing which I'd put as "compat mode"... |
|
I find this bug especially silly because first they added this ridiculous global radio button and then they failed to implement it correctly. 😥 How to do this compat mode thing? Maybe add a new enum to "Player::engine" (EngineEasyRPG and when this is set by a (default) setting in our editor the compat mode is off) |
* Medicines always selectable by all, but silently no effect if used on actor who cannot use. * Other items not selectable if not usable. * Rm2k3 has a bug where medicines always usable if equipment_setting == class. We fix the bug here.
|
Fixed comments. I put the bug comment in battlealgorithm, because |
Uh oh!
There was an error while loading. Please reload this page.