CleverRaven / Cataclysm-DDA

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

No Hope difficulty does nothing #75983

Open TheThingG opened 2 weeks ago

TheThingG commented 2 weeks ago

Describe the bug

The difficulty in the No Hope mod has absolutely no effect on loot. Regardless of the difficulty selected, items are only affected by the world multiplier

Attach save file

N/A

Steps to reproduce

  1. Create world with no hope mod and item spawnrate 1.0
  2. Create character
  3. Select difficulty
  4. Kill anyone, check loot or just loot anything -- it corespond to world item spawnrate, not mod EOC one

Expected behavior

The number of items should match the selected difficulty

Screenshots

image

Versions and configuration

Additional context

No response

GuardianDll commented 2 weeks ago

That's the issue of how difficultly works under the hood - it does not cut the amount of items spawned (if default world spawn 100 ammo, no hope would've spawned only 20), but instead affects the odds for itemgroup to be spawned (if default world spawn 100 ammo with 100% chance , no hope would've spawned 100 ammo with only 20% chance) PRs to address it would be great to have, but should work globally, to simplify maintenance

Night-Pryanik commented 3 days ago

Tested right now.

Selected first difficulty, debug-spawned pharmacy. Noticed that amount of food and drugs spawned is indeed somewhat reduced, in accordance to mod's difficulty settings, 40% chance of spawn for both categories. Selected third difficulty, debug-spawned pharmacy. Noticed that amount of food and drugs spawned is drastically reduced, in accordance to mod's difficulty settings, 10% chance of spawn for both categories.

I guess this issue can be closed, since mod's difficulty settings working as they should.