Skip to content

Commit cff9b35

Browse files
committed
Update clicker
1 parent dd99041 commit cff9b35

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

Examples/for.ows

Lines changed: 0 additions & 6 deletions
This file was deleted.

Gamemodes/OWClicker

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Rule "Initialize Player Stats"
8080
pvar ability2 = False
8181
pvar credits = 0
8282

83-
Rule "Initialize Portals"
83+
Rule "Initialize Effects (Portals / Upgrades / Boundaries)"
8484
Event_Global()
8585
Actions
8686
portals = []
@@ -98,6 +98,7 @@ Rule "Initialize Portals"
9898
// 4 -> 5 Modify Global Variable(E, Append To Array, Vector(-63.000, 2.500, 115.500));
9999
// 5 -> 6 Modify Global Variable(E, Append To Array, Vector(41, 3.500, 67.500));
100100
// prestige: <-172, 3, 96>
101+
// create boundary function
101102

102103
Rule "Initialize Player HUD Stats"
103104
Event_Team(Team 1)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Installation
66
====================
77
1. Install Python with `pip` if you have not done so already.
88
2. Install the requirements using `pip install -r requirements.txt` on your machine.
9-
~3. Run the command `python owscript.py <filename>` to convert a file into workshop rules.~
9+
3. ~Run the command `python owscript.py <filename>` to convert a file into workshop rules.~
1010

1111
## Documentation
1212
*See example code in the `Examples/` folder. `.ows` files are input, `.ow` files are output.*

src/Transpiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def lookup(self, name, scope='global', player='Event Player'):
6262

6363
def visitScript(self, node):
6464
self.scopes.append(Scope(name='global'))
65-
code = 'rule("Generated using https://github.com/adapap/OWScript") \{ Event \{ Ongoing - Global; \}\}\n'
65+
code = 'rule("Generated using https://github.com/adapap/OWScript") {\n Event {\n Ongoing - Global;\n }\n}\n'
6666
for statement in node.statements:
6767
code += self.visit(statement)
6868
code = code.rstrip('\n')

0 commit comments

Comments
 (0)