Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spawn_item effect; always spawns on player, and ignores restrictions if its an extra effect spell #5782

Open
Ignaramico opened this issue Dec 3, 2024 · 0 comments
Labels
enhancement src changes related to source code.

Comments

@Ignaramico
Copy link

Describe the bug

using the effect "spawn_item" as an "extra_effect" spell on a mob (didnt test on NPC), spawns the item on the player regardless of restrictions (like valid target, or targeted ids), it ignores range too (like instead of spawnig it one the x tiles away mob it spawns it in your inventory).
expected it to spawn the item on the ground on the tile target

Steps To Reproduce

make main spell
make a spawn_item extra_effect spell
cast spell
check where the item spawned

Screenshots

No response

Versions and configuration


15:53:43.943 : Starting log.
15:53:43.943 INFO : Cataclysm BN version ac7253c 64-bit
15:53:43.944 INFO : C locale on startup: 'C'
15:53:43.944 INFO : C++ locale on startup: 'C'
15:53:43.978 INFO : Detected system UI language as 'en_US'
15:53:43.978 INFO : SDL version used during compile is 2.26.2
15:53:43.978 INFO : SDL version used during linking and in runtime is 2.26.2
15:53:47.428 INFO : Number of render drivers on your system: 6
15:53:47.428 INFO : Render driver: 0/direct3d
15:53:47.428 INFO : Render driver: 1/direct3d11
15:53:47.428 INFO : Render driver: 2/direct3d12
15:53:47.428 INFO : Render driver: 3/opengl
15:53:47.428 INFO : Render driver: 4/opengles2
15:53:47.428 INFO : Render driver: 5/software
15:53:47.457 INFO : Set debug classes to: [DEBUGMSG MAIN LUA]
15:53:48.003 INFO : Active renderer: 3/opengl
15:53:49.137 INFO : Active audio driver: wasapi
15:53:49.171 INFO : Opened mixer with specs: 44100 Hz, 2 channel(s), format 0x8010
15:53:49.697 INFO : Language set to 'en_US'
15:53:49.697 INFO : C locale set to 'English_United States.1252'
15:53:49.697 INFO : C++ locale set to 'C'
15:53:51.802 INFO : LAPI version: 2
15:53:51.828 INFO LUA : Lua online.
15:54:43.386 INFO : Loaded tileset: UNDEAD_PEOPLE_BASE
15:55:20.520 INFO : GAME REPORT:

  • OS: Windows
    • OS Version: MINGW/CYGWIN/MSYS2 on unknown Windows version
  • Game Version: ac7253c [64-bit]
  • Graphics Version: Tiles
  • LAPI Version: 2
  • Game Language: English [en_US]
  • Mods loaded: [
    Bright Nights [bn],
    Disable NPC Needs [no_npc_food],
    Simplified Nutrition [novitamins],
    No Rail Stations [No_Rail_Stations],
    Prevent Zombie Revivication [no_reviving_zombies],
    Limit Fungal Growth [limit_fungal_growth],
    Item Category Overhaul [Item_Category_Overhaul],
    UDP Redux [udp_redux],
    A dueliste mod [Aduelistmmod]
    ]

15:55:28.839 : Log shutdown.

Additional context

didnt test the issue as a main spell, but i guess is the same problem, since the only difference would be the valid target difference (like setting it to target ally, the code wouldnt let you cast the spell, but if targets and ally it would spawn it on you)

@Ignaramico Ignaramico added the bug label Dec 3, 2024
@Ignaramico Ignaramico changed the title spawn_item effect; always targets player, and ignores restrictions if its an extra effect spell spawn_item effect; always spawns on player, and ignores restrictions if its an extra effect spell Dec 3, 2024
@RoyalFox2140 RoyalFox2140 added enhancement src changes related to source code. and removed bug labels Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement src changes related to source code.
Projects
None yet
Development

No branches or pull requests

2 participants