It is currently 20 Mar 2019, 02:57
   
Text Size

MagicTargetChoice

Moderators: melvin, beholder, ubeefx, Lodici, ShawnieBoy, CCGHQ Admins

MagicTargetChoice

Postby ShawnieBoy » 31 May 2014, 13:43

Currently MagicTargetChoice is functioning as a string replacement for groovy code.

As the TargetFilterFactory has expanded, would it not make more sense to use the constructors in groovy code?
Code: Select all
MagicTargetChoice.Negative("target spell")

instead of

Code: Select all
MagicTargetChoice.NEG_TARGET_SPELL
for example.

This would allow for a broader range of target choices than current, as the target filters are far more comprehensive. The only downside I see so far is that they wouldn't be caught when running in dev mode if the target filters don't yet exist.
User avatar
ShawnieBoy
Programmer
 
Posts: 601
Joined: 02 Apr 2012, 22:42
Location: UK
Has thanked: 80 times
Been thanked: 50 times

Return to Development

Who is online

Users browsing this forum: No registered users and 1 guest


Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 10 minutes)
Most users ever online was 279 on 11 Jul 2013, 22:03

Users browsing this forum: No registered users and 1 guest

Login Form