Skip to content

Commit

Permalink
Release PBP 1.02, separate version info file.
Browse files Browse the repository at this point in the history
  • Loading branch information
armoha committed Feb 24, 2019
1 parent 9905163 commit b86ec57
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
Binary file modified (4)CircuitBreakers1.0_PBP1.02.scx
Binary file not shown.
Binary file modified (4)Fighting Spirit_PBP1.02.scx
Binary file not shown.
Binary file modified (4)PBP_TEST.scx
Binary file not shown.
1 change: 1 addition & 0 deletions source/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.02
3 changes: 2 additions & 1 deletion source/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
import unitloop
import upgrade

VERSION = "1.02"
with open("source/VERSION", "r") as f:
VERSION = f.read()


def onPluginStart():
Expand Down
11 changes: 6 additions & 5 deletions source/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

from eudplib import *

from main import VERSION


def onInit():
with open("source/VERSION", "r") as f:
VERSION = f.read()
eddfnames = [
"main_CircuitBreakers.edd",
"main_FightingSpirit.edd",
Expand All @@ -28,6 +28,7 @@ def onInit():
f.seek(0)
f.write(output)
f.truncate()

chkt = GetChkTokenized()

SPRP = bytearray(chkt.getsection("SPRP"))
Expand All @@ -38,19 +39,19 @@ def onInit():
UNIx = bytearray(chkt.getsection("UNIx"))
UNIx[0:228] = b"\0" * 228
for i in range(228 * 8, 228 * 10, 2):
UNIx[i:i + 2] = i2b2(20)
UNIx[i:i + 2] = i2b2(30)
chkt.setsection("UNIx", UNIx)

TECx = bytearray(chkt.getsection("TECx"))
TECx[0:44] = b"\0" * 44
for i in range(44 * 5, 44 * 7, 2):
TECx[i:i + 2] = i2b2(20)
TECx[i:i + 2] = i2b2(30)
chkt.setsection("TECx", TECx)

UPGx = bytearray(chkt.getsection("UPGx"))
UPGx[0:61] = b"\0" * 61
for i in range(61 * 9 + 1, 61 * 11 + 1, 2):
UPGx[i:i + 2] = i2b2(20)
UPGx[i:i + 2] = i2b2(30)
UPGx[i + 61:i + 63] = i2b2(0)
chkt.setsection("UPGx", UPGx)

Expand Down

0 comments on commit b86ec57

Please sign in to comment.