CleverRaven / Cataclysm-DDA

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

[Mind Over Matter] Gateway from armed mechs retains their weapon permanently #77531

Open FlahhhPersonson opened 2 days ago

FlahhhPersonson commented 2 days ago

Describe the bug

When casting the MoM spell Gateway inside a X-03 Spectre mech, the integrated RMES rifle becomes permanently attached to the player character, rather than the mech. This also precludes ever re-entering the mech, as it is now a permanently held item. However, the weapon does work if the player is carrying a UPS, which is fun!

(also, thanks for making the game and mod, they're both really fun!)

Attach save file

Gate Mech Test-trimmed.tar.gz

Steps to reproduce

  1. Load the provided save.
  2. Enter the mech immediately next to the character.
  3. Cast Gateway. (a location has already been attuned, but may require several tries due to low Int)
  4. Behold the Megaman arm your character now permanently has.

Expected behavior

I either expected Gateway to bring the mech along as well, or to unequip its weapon when teleporting me out of it.

Screenshots

image image

Versions and configuration

Additional context

No response

GuardianDll commented 2 days ago

@Standing-Storm what's preferred way to fix it in your opinion?

Standing-Storm commented 2 days ago

Teleport the psion, leave weapon and mech behind, as the default.

FlahhhPersonson commented 2 days ago

Oops! In that case, you should know that Phase and Blink both seem to bring the mech along (but don't leave you with a gun stapled to your arm)

Standing-Storm commented 2 days ago

It sounds like it's probably something with how the teleport effect functions by default.

FlahhhPersonson commented 1 day ago

Just tested using debug teleport; short range teleport brings mounts along but otherwise works perfectly, long range does the weird desync. Both seem to occur regardless of actual range, so it's probably something relating to those two specific functions.