Chaosforge Forum

  • March 28, 2024, 15:01
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: [0.9.9.1] Moving speed not calculated right?  (Read 1725 times)

JoeB

  • Private
  • *
  • Offline Offline
  • Posts: 2
    • View Profile
[0.9.9.1] Moving speed not calculated right?
« on: March 27, 2010, 17:38 »

I'm playing the Linux version of DoomRL 0.9.9.1. When I equip an armor with -10% move speed, and a pair of boots with +10% move speed, my total speed is 0.99 second/move instead of 1.00.

Screenshots:
Without armor/boots
With armor/boots
Logged

Shoop da Whoop

  • First Sergeant
  • *
  • Offline Offline
  • Posts: 126
  • Personal Text
    • View Profile
Re: [0.9.9.1] Moving speed not calculated right?
« Reply #1 on: March 27, 2010, 17:51 »

Such a weird result appears because of ordered (not parallel) modificators counting:
1.00 +10% = +0.10 1.10 -10% = -0.11 0.99
or
1.00 -10% = -0.10 0.90 +10% = -0.09 0.99.

Must be: 1.00 -10% + 10% = 0 1.00.
« Last Edit: March 27, 2010, 17:53 by Shoop da Whoop »
Logged
Code: [Select]
He had posted some posts.
He waited enough for new version of DoomRL.
He played classic Doom but not passed. He also played rogulikes. And once he found the intersection of these sets...

Kejardon

  • Lance Corporal
  • *
  • Offline Offline
  • Posts: 30
  • Lost Soul
    • View Profile
Re: [0.9.9.1] Moving speed not calculated right?
« Reply #2 on: March 27, 2010, 18:26 »

There's pretty good reason to use ordered modifications instead.
Let's say you have phaseshift boots and phaseshift armor both with agility mods, and Hellrunner 2. That gives +40, +25, and +30 speed (Note: Hellrunner gives +15 speed now!). If you add them together, that results in +95 speed. Movement would take only 0.05 seconds per move. That's a tad bit broken. Running would put it at -0.25 seconds per move which raises several obvious problems.
If you use ordered, however, the result is +68.5, for 0.315 seconds per move, or with running, +77.95 or 0.22 seconds/move. 4 moves per enemy move in total, which is fair for a fully kitted, specialized character. It will never be able to reach 0, but each speed boost is still significant.
Logged

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/
Re: [0.9.9.1] Moving speed not calculated right?
« Reply #3 on: March 27, 2010, 18:53 »

It's by design. There are ways to accumulate +100 speed or more, especially at firing time, hence that would break the system. This way it works, and each + still gives more speed.
Logged
at your service,
Kornel Kisielewicz
Pages: [1]