--- Log opened Fri Jun 15 00:00:57 2018 20180615 07:43:02-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180615 07:43:08-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180615 11:27:42-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180615 11:27:48-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180615 16:34:32< discordbot2> Hey there! I know there is max_value for abilities, to have a maximum that shall not be exceed. Is there something similar for negative numbers? One can subtract from resistance as well. It seems to me it would make sense to have a maximum in negative as well. 20180615 16:35:31< discordbot2> you mean like a minimum? 20180615 16:37:29< discordbot2> I mean if I already have, say, a cold resistance of -20%, and I subtract another 60% of it, that I don't end up having -80% resistance to cold, but a specific maximum number I specified. like negative_maximum_value=50, so -20% and -60% would still end up being -50% 20180615 16:37:53< discordbot2> maybe max_value works in both ways? 20180615 16:41:15< discordbot2> it depends on if it's coded to take negative values into account, I'd guess. Ideally it would, but you'd need to test to know for sure. 20180615 16:42:10< discordbot2> though I suspect it may just work that -50% is the highest possible value 20180615 16:42:42< discordbot2> a min_value key would probably be the best way to handle it 20180615 16:45:36< Ravana_> currently you handle that by multiple ability tags with different filter 20180615 17:05:10< discordbot2> how would that look like, ravana? 20180615 17:12:07< Ravana_> based on filter_base_value either do nothing, set to min value, or add something 20180615 17:57:05-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has quit [Remote host closed the connection] 20180615 17:57:11-!- janebot [~Gambot@unaffiliated/gambit/bot/gambot] has joined #wesnoth-umc-dev 20180615 20:55:11< Ravana_> do macros allow any kind of recursion - that is by having base case? 20180615 20:59:15< discordbot2> I would imagine the code that replaces the macro would have to be able to recurse 20180615 20:59:25< discordbot2> since the macro is all preprocessor, not runtime 20180615 21:00:28< discordbot2> You could easily define macros to have multiple copies of other macros, though 20180615 21:03:24< Ravana_> ifver could work for checking condition 20180615 21:27:53< Ravana_> doesn't seem doable, preprocessing is done inside out 20180615 21:33:45< Ravana_> wesnoth -p was invaluable for trying it out though, would have taken way too long with GUI 20180615 21:38:32< Ravana_> time to go check the reason why I wanted recursion in the first place - and works well enough with just 2 zero width spaces https://vgy.me/mrK9Jb.png --- Log closed Sat Jun 16 00:00:58 2018