Open osuphobia opened 6 months ago
Some people in the discord are having the age old issue of NPCs using anything but ranged weapons. Is it likely that this test failing and their issue have the same cause?
Some people in the discord are having the age old issue of NPCs using anything but ranged weapons. Is it likely that this test failing and their issue have the same cause?
I dunno what the old issue actually is, but not likely to be the same one. In this case, enemy NPCs are wielding crossbow (or something less lethal) first, and change to M4 carbine before the time point they are expected to do so. The problem is not that they don't wield guns, but they wield them too early, before the TEST CASE wants them to.
Ah, my bad I misread the issue. Thanks anyway 👍
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.
Still an existing issue: https://github.com/CleverRaven/Cataclysm-DDA/actions/runs/11936471549/job/33270194209?pr=78035
Describe the bug
I have encountered these CI bugs for several times.
https://github.com/CleverRaven/Cataclysm-DDA/actions/runs/9233824079/job/25406711898?pr=74065 https://github.com/CleverRaven/Cataclysm-DDA/actions/runs/9003333447/job/24735032542
https://github.com/CleverRaven/Cataclysm-DDA/actions/runs/8962437008/job/24611311991
The
npc_prefers_guns
andnpc_prefers_guns
test cases are failing, looks like the enemy NPC were already wielding the gun properly beforeCHECK( danger_around > 1.0f )
,CHECK( !hostile.get_wielded_item().get_item()->is_gun() )
, orhostile.wield_better_weapon()
.https://github.com/CleverRaven/Cataclysm-DDA/blob/929b6f6625a03df3ce542679d428ca3d0726de47/tests/npc_test.cpp#L583-L614
https://github.com/CleverRaven/Cataclysm-DDA/blob/929b6f6625a03df3ce542679d428ca3d0726de47/tests/npc_test.cpp#L616-L656
Attach save file
N/A
Steps to reproduce
No idea, asked Renech for help, but they didn't reproduce this bug locally.
Expected behavior
No failure.
Screenshots
No response
Versions and configuration
5227b93da607f85ab1165a49eb3f2d7caf3d7bff
Additional context
No response