BTW-Community / BTW-Public

Community repository for the BTW CE mod
http://www.sargunster.com/btwforum/
Creative Commons Attribution 4.0 International
112 stars 14 forks source link

Bandages #127

Open ammoore00 opened 2 years ago

ammoore00 commented 2 years ago

Add bandages as a way to provide field healing before getting potions. Should take 10-15 seconds to apply.

Potentially create 2 tiers, one based on paper and one on fabric. First tier heals 1 heart, second tier heals 2 hearts (tier 1 potion for reference heals 3 hearts in 1.6 seconds)

vgl266 commented 2 years ago

Gonna bring in some Hardcore Bees to help with these

PlasmaFox256 commented 2 years ago

i think the bandages should remove low health de-buffs rather than restoring health. That way the player can bandage up in a poor state and then be able to run away from danger. i just feel like this is a cool and unique change. Higher tier bandages might restore some health too.

ammoore00 commented 2 years ago

That's honestly not that easy to do. Status effects are calculated at runtime based on health and not tracked separately. Because the client would need to be updated to make the GUI reflect the proper status, there's need to be work put in to properly tracking the state of bandage, as well as some sort of way to communicate to the player that bandages are applying a bonus.

It's a cool idea, but more work than the benefits of just providing a small direct heal imo.

PlasmaFox256 commented 2 years ago

just add a check for effect bandaged or something like that and the player de-buff section will just have to check if bandaged effect is off doesnt sound hard to code on paper but i havent looked into the source code yet so i might be wrong

ammoore00 commented 2 years ago

That's exactly what I'm saying would be non trivial to track. Because i also didn't even mention the fact that you would also have to save that information to the level data when you exit so it wouldn't be lost on load.

The only real way to do it more easily would be to create a custom potion effect for it, but that would be a bit clunky where i feel a straight heal would be more elegant from a player perspective.

The other thing is that just removing status effects doesn't really address the base problem of having to wait several minutes after taking any serious damage to heal to a level where you can take at least a couple hits if you need to.

vgl266 commented 2 years ago

i think the bandages should remove low health de-buffs rather than restoring health. That way the player can bandage up in a poor state and then be able to run away from danger.

I'd say it's pretty interesting. Not sure if it would work out exactly the way it supposed to, but still feels worthwhile to test.

The other thing is that just removing status effects doesn't really address the base problem of having to wait several minutes after taking any serious damage

It can be addressed separately still. This one is targeted at solving the bigger issue of the game not accounting for player skill when on low health.

That's honestly not that easy to do.

Yeah, I agree with that one. Minecraft modding as a whole is not trivial thing to do tbh. Could still help if some thought would be put into decoupling these systems in general, not for this one suggestion, but for all similar stuff in general. I would love to look into it, if I manage to free myself some time.