It is currently 16 Apr 2024, 18:36
   
Text Size

MagicTargetChoice

Moderators: ubeefx, beholder, melvin, 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 10 guests


Who is online

In total there are 10 users online :: 0 registered, 0 hidden and 10 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 10 guests

Login Form