Ticket #60 (closed feature: fixed)

Opened 1 year ago

Last modified 1 year ago

Simplify the code for timed player effects

Reported by: takkaria Assigned to: takkaria
Milestone: 3.0.8 Version:
Keywords: Cc:

Description

xtra2.c contains too much repeated code, so unify it as much as possible.

To fix:

  1. Turn timed player effects into an array
  2. Unify access functions, using a table of {effect} -> {message, flags}
  3. Simplify some more by adding inc_, dec_, and clear_ functions for the most common use cases.

Already done for the most part. Messy; should this be in 3.0.8?

Attachments

script.sed (2.3 kB) - added by takkaria on 03/23/07 16:29:44.
sed script to perform replacements, run using `sed -i script.sed *.c"

Change History

03/23/07 16:29:44 changed by takkaria

  • attachment script.sed added.

sed script to perform replacements, run using `sed -i script.sed *.c"

03/29/07 13:22:13 changed by takkaria

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [24].


Add/Change #60 (Simplify the code for timed player effects)




Action