Open ranisalt opened 3 weeks ago
nice, can we keep tab for indentation just to keep aligned with the other files? 😄 and also I see some spells were deleted accidentally? for example magic shield and cancel magic shield
nice, can we keep tab for indentation just to keep aligned with the other files?
It was formatted with luaformatter, I don't know why it used spaces but maybe we're missing a config file?
some spells were deleted accidentally? for example magic shield and cancel magic shield
oops
nice, can we keep tab for indentation just to keep aligned with the other files?
All files use spaces rather than tabs, are you sure about that? :thinking:
We can make loading not fail if XML is not present and drop the file altogether
We can make loading not fail if XML is not present and drop the file altogether
I we wont drop support for xml i preffer to keep this file with some samples (like revscript examples)
I we wont drop support for xml i preffer to keep this file with some samples (like revscript examples)
The goal is to drop XML
Droping XML support will break backward compatibility. As far as i know TFS want to be backward compat. PS: There is no automated script to convert all xml spells to revscript format.
Droping XML support will break backward compatibility. As far as i know TFS want to be backward compat.
It won't, we can supply a XML parser written in Lua that can be disabled at will. I will do that in a separate PR while disabling it in C++
There is no automated script to convert all xml spells to revscript format.
Indeed :laughing: I used this script written in Python to mass-convert them:
will be nice to add this script to repo for speedup migration from older version to latest
Pull Request Prelude
Changes Proposed
Moves player spells to data/scripts in order to reduce XML-coding. Monster spells, rune spells and house spells stay in XML for now :laughing: