It is currently 17 Jun 2019, 10:52
   
Text Size

MagicTargetChoice

Moderators: melvin, beholder, ubeefx, ShawnieBoy, Lodici, 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 2 guests


Who is online

In total there are 2 users online :: 0 registered, 0 hidden and 2 guests (based on users active over the past 10 minutes)
Most users ever online was 287 on 31 Mar 2019, 04:11

Users browsing this forum: No registered users and 2 guests

Login Form