Potion Fixes: #2191

Merged
cora merged 1 commits from Fix_waterbreathing_and_potion_icons into master 2022-05-09 12:25:52 +02:00
Member

This PR ensures all potion icons disappear after their effect is gone.
And, stops the Breath bar from flashing when water_breathing is in effect.

It replaces this PR: MineClone2/MineClone2#1956
And, will fix: MineClone2/MineClone2#1744


Potion Icon Testing:
Start a new world, in creative mode to easily acquire the potions.
I recommend the "lingering" versions; as they have a short timer for their effects.
But, this bug applied to all potions. So, feel free to verify with the longer timers.

Potions that were broken:

  1. Fire Resistance Potion
  2. Water Breathing Potion
  3. Invsibility Potion
  4. Leaping Potion
  5. Night Vision Potion

(slow & swift are handled together in the code)
6. Swiftness Potion
7. Slowness Potion

Before this PR, the icons won't disappear after the timer is up. With this PR, they disappear automatically.


Water Breathing Testing:
Reuse the same world as above, and test the effects of the water breathing potion underwater.
The breath bar should no longer be flashing constantly with this PR.

This PR ensures all potion icons disappear after their effect is gone. And, stops the Breath bar from flashing when water_breathing is in effect. It replaces this PR: https://git.minetest.land/MineClone2/MineClone2/pulls/1956 And, will fix: https://git.minetest.land/MineClone2/MineClone2/issues/1744 --- **Potion Icon Testing:** Start a new world, in creative mode to easily acquire the potions. I recommend the "lingering" versions; as they have a short timer for their effects. But, this bug applied to all potions. So, feel free to verify with the longer timers. **Potions that were broken:** 1. Fire Resistance Potion 2. Water Breathing Potion 3. Invsibility Potion 4. Leaping Potion 5. Night Vision Potion (slow & swift are handled together in the code) 6. Swiftness Potion 7. Slowness Potion Before this PR, the icons won't disappear after the timer is up. With this PR, they disappear automatically. --- **Water Breathing Testing:** Reuse the same world as above, and test the effects of the water breathing potion underwater. The breath bar should no longer be flashing constantly with this PR.
MysticTempest force-pushed Fix_waterbreathing_and_potion_icons from 7aa7451a17 to 44b1d583a7 2022-05-09 12:20:16 +02:00 Compare
cora approved these changes 2022-05-09 12:23:10 +02:00
cora left a comment
Contributor

Tested all mentioned potions: Potions still work, after timeout: Icon disappears correctly, effect still stops, water breathing bar does not pop up during water breathing anymore.

good work <3

Tested all mentioned potions: Potions still work, after timeout: Icon disappears correctly, effect still stops, water breathing bar does not pop up during water breathing anymore. good work <3
cora merged commit 7c263c6a18 into master 2022-05-09 12:25:52 +02:00
cora deleted branch Fix_waterbreathing_and_potion_icons 2022-05-09 12:25:57 +02:00
Contributor

I haven't checked this yet, but does this also cover the effects of golden apples?

I haven't checked this yet, but does this also cover the effects of golden apples?
Contributor

I haven't checked this yet, but does this also cover the effects of golden apples?

I think it does since that uses the same code as potions afaik

> I haven't checked this yet, but does this also cover the effects of golden apples? I think it does since that uses the same code as potions afaik
Author
Member

I haven't checked this yet, but does this also cover the effects of golden apples?

Yes, the golden apples just call upon the mcl_potions functions for their effects. So, the fix applies to them as well.

Edit: Hehe, Cora you beat me to the reply by seconds.

> I haven't checked this yet, but does this also cover the effects of golden apples? Yes, the golden apples just call upon the mcl_potions functions for their effects. So, the fix applies to them as well. Edit: Hehe, Cora you beat me to the reply by seconds.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: VoxeLibre/VoxeLibre#2191
No description provided.