Add [found_item] ConditionalWML that checks if an [object] ActionWML has been taken

This commit is contained in:
Celtic Minstrel 2015-09-17 13:01:07 -04:00
parent 65256c61aa
commit a93ce122ff
2 changed files with 5 additions and 0 deletions

View file

@ -89,6 +89,7 @@ Version 1.13.1+dev:
number of movement points the attack consumes
* Ability to patch movetypes to account for custom terrains or damage types
* Removed y offset by -1 from [message]'s scroll-to-unit logic.
* Add [found_item] ConditionalWML to check if an [object]id= ActionWML has been taken
* Editor:
* Added Category field and color sliders to the Edit Label panel.
* Miscellaneous and bug fixes:

View file

@ -78,3 +78,7 @@ function wesnoth.game_events.on_save()
table.insert(cfg, T.used_items(used_items) )
return cfg
end
function wesnoth.wml_conditionals.found_item(cfg)
return used_items[cfg.id]
end