ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Sun Sep 23, 2018 4:46 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Sat Jan 29, 2011 5:09 pm 
Offline
Wyrmic

Joined: Sat Jan 26, 2008 1:12 am
Posts: 203
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.


Top
 Profile  
 
PostPosted: Sat Jan 29, 2011 5:48 pm 
Offline
Master of Eyal

Joined: Wed Jul 24, 2002 9:26 pm
Posts: 10230
Location: Angolwen
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 ;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group