Opened 9 years ago

Closed 8 years ago

#987 closed change (fixed (in master))

Move to fractional blows

Reported by: magnate Owned by: magnate
Milestone: 3.2.0 Keywords: combat
Cc:

Description

aka "blows work like shots". Each blow takes 100 / 50 / 33 / 25 / 20 / 16 energy. Opportunity to rework the blows table to smooth breakpoints, using other values of energy per blow (e.g. 80, 40 etc.).

Probably needs some sort of flush mechanism to enable players to hold down attack key without killing themselves.

Change History (6)

comment:1 Changed 9 years ago by takkaria

Also some ideas mooted in the thread at http://angband.oook.cz/forum/showthread.php?t=2727

comment:2 Changed 9 years ago by magnate

  • Milestone changed from Future to 3.1.3
  • Owner set to magnate
  • Status changed from new to assigned

comment:3 Changed 9 years ago by magnate

http://github.com/magnate/angband/tree/fracblows

Not yet perfect, but working. Need to check for monster double move bugs, and need to fix the display of blows properly - it's quite difficult to do 2 decimal places using % 100 if the 2nd digit is zero: 3.03 becomes 3.3 ... so at the moment it truncates .01-.09 to .0

comment:4 Changed 9 years ago by magnate

Ok, now working with no double moves from slower monsters, and a correct display to one decimal place. It can doubtless be improved (noz envisages interleaving player and monster attacks, but that's a lot of work). Leaving ticket open until it's merged back into takkaria/angband/master after wider testing.

comment:5 Changed 9 years ago by magnate

  • Status changed from assigned to confirmed

comment:6 Changed 8 years ago by magnate

  • Resolution set to fixed
  • Status changed from confirmed to closed
Note: See TracTickets for help on using tickets.