This commit is contained in:
2025-03-27 17:11:14 +01:00
parent 35c9414422
commit c20d43139f
2 changed files with 8 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
modify 'reward="!num' '*4' '**/Missions.xml' modify 'reward="!num' '*4' '**/Missions.xml'
modify 'maxstacksize="!num' '*2' '**/containers.xml' '**/tools.xml' modify 'maxstacksize="!num' '*2' '**/containers.xml' '**/tools.xml'
modify 'capacity="!num' '*2' '**/containers.xml' '**/tools.xml' modify 'capacity="(?<capacity>!num)"!anyslotsperrow="(?<slotsperrow>!num)' 'capacity=capacity*2 slotsperrow=1 while slotsperrow * slotsperrow < capacity do slotsperrow = slotsperrow + 1 end' '**/containers.xml' '**/tools.xml'
modify '(blocks="[^"]+")' 's1=""' '**/TalentTrees.xml' modify '(blocks="[^"]+")' 's1=""' '**/TalentTrees.xml'
modify '<TalentOptions(.?)>' 's1=" maxchosentalents=\"5\""' '**/TalentTrees.xml' modify '<TalentOptions(.?)>' 's1=" maxchosentalents=\"5\""' '**/TalentTrees.xml'
modify 'LightComponent!anyrange="(!num)"' '*4' '**/*.xml' modify 'LightComponent!anyrange="(!num)"' '*4' '**/*.xml'

7
scratch.lua Normal file
View File

@@ -0,0 +1,7 @@
capacity = 17
slotsperrow = 0
print(math.sqrt(capacity))
print(slotsperrow)