[no gbp] Drowning doesn't make you fitter (#90794)

## About The Pull Request

Fixes #90790

Decreases the exp gain from swimming and only grants it while you
actually have stamina.
Even if it doesn't kill you this shouldn't make you stronger

## Changelog

🆑
fix: Floating motionless and face down in the water doesn't count as a
workout
/🆑
This commit is contained in:
Jacquerel
2025-04-24 14:12:17 +00:00
committed by GitHub
parent 2f9ea7f158
commit 2e3046d1ae
+5 -1
View File
@@ -85,8 +85,12 @@
if (!HAS_TRAIT(owner, TRAIT_SWIMMER))
var/athletics_skill = (owner.mind?.get_skill_level(/datum/skill/athletics) || 1) - 1
owner.apply_damage((stamina_per_second - athletics_skill) * seconds_between_ticks, STAMINA)
owner.mind?.adjust_experience(/datum/skill/athletics, 10)
// If you can't move you're not swimming
if (!HAS_TRAIT(owner, TRAIT_INCAPACITATED) && !HAS_TRAIT(owner, TRAIT_IMMOBILIZED))
owner.mind?.adjust_experience(/datum/skill/athletics, 3)
// You might not be swimming but you can breathe
if (HAS_TRAIT(owner, TRAIT_NODROWN) || HAS_TRAIT(owner, TRAIT_NOBREATH) || (owner.mob_size >= MOB_SIZE_HUMAN && owner.body_position == STANDING_UP))
return
if (iscarbon(owner))