Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

The UPS charges devices too fast

Open IdleSol opened this issue 1 year ago • 2 comments

Describe the bug

Currently, the charge rate is 1 kJ per second. In my opinion, this is a very high charge rate.

For example, a smartphone with 56 charges will charge from 0% to 100% in 56 seconds.

Attach save file

n/a

Steps to reproduce

  1. Standard world and character
  2. Locate any electronic device (smartphone)
  3. Create a UPS
  4. Turn on the UPS
  5. Observe the change in charge of the electronic device.

Expected behavior

Several alternatives

  1. Expanding the charge_rate parameter beyond “use_action”: {“type”: “link_up” ...}.
  2. Additions of the rule: device charging rate = N x power_draw

Screenshots

No response

Versions and configuration

  • OS: Windows
    • OS Version: 10.0.19043 (21H1)
  • Game Version: cdda-experimental-2024-09-10-0339 c73e4c6 [64-bit]
  • Graphics Version: Tiles
  • Game Language: Русский <color_dark_gray>(91.3%) [ru]
  • Mods loaded: [ Тёмные Дни Впереди [dda], Отключить потребности у НПС [no_npc_food], Портальные штормы игнорируют НПС [personal_portal_storms], Медленный рост фунгалоидов [no_fungal_growth] ]

Additional context

No response

IdleSol avatar Sep 10 '24 14:09 IdleSol

Isn't this another issue of deficient energy resolution? Charging rate ought to be per second, because that's the rate of the game, but the charging rate ought to be capable of being other than multiples of kJ/s, including, of course, less than 1 kJ/s.

PatrikLundell avatar Sep 11 '24 09:09 PatrikLundell

Instead of defining a charge rate per device, perhaps we could get some standard charge rates per light/medium/heavy battery, and have them charge accordingly. There would be less guessing on how fast a specific device charges, less maintenance in code, and it would automatically scale for more electronics in the future.

CoroNaut avatar Sep 12 '24 00:09 CoroNaut