Skip to content

Commit

Permalink
auto lua to sm file
Browse files Browse the repository at this point in the history
  • Loading branch information
FIXMBR committed Mar 22, 2020
1 parent 818f09c commit 750b1a5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions sm.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,13 @@ def barf(self, LF="\r\n", mc=1, noteSkin="cybercouples"):
s += ";" + LF
elif item == "OFFSET":
s += "#%s:%.3f;" % (item, self.offset) + LF
elif item == "ATTACKS":
pass
elif item == "FGCHANGES":
print(self.params[item])
if self.params[item] == ['']:
s += "#FGCHANGES:0.000=lua=1.000=0=0=1=====;"+ LF
else:
for value in self.params[item]:
s += "#%s:%s;" % (item, value) + LF
else:
for value in self.params[item]:
s += "#%s:%s;" % (item, value) + LF
Expand Down

0 comments on commit 750b1a5

Please sign in to comment.