ActorProject discards particles.args

Moderator: Moderator

Post Reply
Message
Author
Marcotte
Wyrmic
Posts: 203
Joined: Sat Jan 26, 2008 1:12 am

ActorProject discards particles.args

#1 Post by Marcotte »

Just browsing the code for the particles that get emitter when project() is called, I found that ActorProject only use particles.type from the particles parameter given to project(). That seems fine, except that Map:particleEmitter() has 3 relevant parameters: radius, def, and args. While it is obvious that radius should be 1 (as the method gets called for every tile), there are no reason why args is set to nil instead of particles.args.

One application of being able to set args from the project() function would be to change the color of the emitted particles depending on the element of the spell. Of course, this can be done by calling particleEmitter() directly, but using the particles of project() is simpler.

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: ActorProject discards particles.args

#2 Post by darkgod »

done
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply