Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Giant Rat Duo has "ambush" ability, though Help says it shouldn't have #25

Closed
vgaming opened this issue Apr 25, 2018 · 14 comments
Closed

Comments

@vgaming
Copy link

vgaming commented Apr 25, 2018

subj. I tested the Giant Rat Duo once, and it seems that the unit has "ambush". The type information does not say anything about "ambush" though.

I did a "save->replay->save" cycle though, dunno if a wesnoth bug could sneak in. Probably not though.

Thoughts?

@ProditorMagnus
Copy link
Owner

It is bug of help browser/whatever you used to check if it should have ambush.

It has multiple [abilities] in same [unit_type]. Will see if I can support selecting such cases with https://github.com/ProditorMagnus/WML_tree_tools. I think I cant specifically select tags with two subtags of same name, but I can later go over that list.

@vgaming
Copy link
Author

vgaming commented Apr 25, 2018

@ProditorMagnus I just pressed "D" to invoke Help on the unit. Should that have worked?

@ProditorMagnus
Copy link
Owner

No idea, I guess multiple [abilities] should be accepted or rejected based on celmin schema validation.

@ProditorMagnus
Copy link
Owner

   _abilities="optional abilities"

So it is undefined behavior.

@vgaming
Copy link
Author

vgaming commented Apr 26, 2018

hmm.. Not like I really understood that. So the ability has a chance to activate itself and has a chance NOT to activate itself at unit creation time?
If the answer is Yes, I wonder why have such an ability at all, why not make it 100% persistent.

@ProditorMagnus
Copy link
Owner

Will see if I can support selecting such cases with https://github.com/ProditorMagnus/WML_tree_tools. I think I cant specifically select tags with two subtags of same name, but I can later go over that list.

That is plan yes.

@vgaming
Copy link
Author

vgaming commented Apr 26, 2018

TBH I still don't understand what's happening. But Okay, I guess the bug report itself isn't that useful then.

@vgaming vgaming closed this as completed Apr 26, 2018
@ProditorMagnus
Copy link
Owner

It serves as reminder that I should locate this situation.

@vgaming
Copy link
Author

vgaming commented Apr 26, 2018

Ok, cool 👍

@sevu
Copy link
Collaborator

sevu commented May 10, 2018

There is indeed a bug in the help. E.g. if a unit has [advancement]s (or was it [advance]) ALL abilities it can get that way are displayed in the help.

@ProditorMagnus
Copy link
Owner

This is not from advancement, the unit has that ability always. https://github.com/ProditorMagnus/Ageless-for-1-11/blob/master/units/EE_units/monsters/Giant_Rat_Duo.cfg#L31-L50

@sevu
Copy link
Collaborator

sevu commented May 12, 2018

Guess it will work if it would in one single [abilities] tag, or if the second starts as [+abilities].
Well, the ageless problem, to much aged code... and not enough people who do maintain it.

@ProditorMagnus
Copy link
Owner

Duplicate abilities {'AE_bem_calydonians_Tassiarch', 'AE_mag_Mystic_Warrior', 'AE_ext_monsters_Giant_Rat_Trio', 'AE_ext_monsters_Giant_Rat_Duo', 'AE_bem_calydonians_Strategos'}

Duplicate resistance {'AE_mrc_avians_Savior', 'AE_mrc_avians_Dove', 'AE_mrc_avians_Nestguard', 'AE_mag_Void_Mage', 'AE_mrc_avians_Razorwing', 'AE_mag_Great_Warlock', 'AE_mrc_avians_Bladewing', 'AE_mag_Rhami', 'AE_agl_vlk_Ghost_Warrior', 'AE_mrc_avians_Shell', 'AE_mag_DarkApostle'}

Duplicate defense {'AE_mag_Steamcopter', 'AE_mag_Balloon', 'AE_mag_Water_God', 'AE_mag_Water_Avatar', 'AE_mag_Dark_Portal', 'AE_efm_darklanders_Canoe', 'AE_rhy_fh_Huntsman', 'AE_rhy_fh_Alpha_Wolf', 'AE_rhy_fh_Ranger', 'AE_rhy_fh_Trapper', 'AE_mag_Water_Elemental', 'AE_rhy_fh_Druid', 'AE_mag_Mechanical_Dragon', 'AE_rhy_fh_Young_Wolf', 'AE_mag_Heavy_Balloon', 'AE_rhy_fh_Ancient_Druid', 'AE_rhy_fh_Forest_Wolf'}

@ProditorMagnus
Copy link
Owner

There are more tags to check. Weapon specials need special handling to allow multiple attacks with special.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants