CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
9.99k stars 4.09k forks source link

Mind Over Matter "Force Shove" not working as intended #74154

Open UltraEarth opened 1 month ago

UltraEarth commented 1 month ago

Describe the bug

Using the "Force Shove" Ability doesn't work all the time, sometimes it just moves the target a single square (even if said target is smaller and with low weight), sometimes it only staggers the target and sometimes in the log it says it worked but the target is not affected by the ability.

Attach save file

Perry_copy-trimmed.tar.gz

Steps to reproduce

1-Approach an enemy 2-Use "ForceShove" ability to yeet the target into the distance. 3-Target is only moved one tile or only staggered.

Expected behavior

I expected to shove the target into the distance or towards a wall to damage it.

Screenshots

No response

Versions and configuration

Additional context

No response

Standing-Storm commented 1 month ago

Loaded up the game and shoved three targets--a regular zombie, a zombie child, and a rat: image

No one has moved since I shoved them.

The example character has Force Shove 5 and no Nether Attunement, and intelligence 15, leading to a weight limit of 117.18 kg (125 kg 0.75 1.25). That's more than the basic zombie's weight of 82 kg, leading to a power weight calculation of 0.875, or distance 1 (calculation is clamp(((u_weight_ratio - 1) * 2), 0, 30), where u_weight_ratio is the power weight limit divided by the target weight). A zombie child has a weight of 40.75, leading to a power weight calculation of 3.75, or distance 4. And the black rat has a weight of 0.20 kg, which is why it's hurled the maximum distance (30 squares).

Everything seems to be working correctly.

github-actions[bot] commented 3 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.