ItsDeltin / Overwatch-Script-To-Workshop

Converts scripts to Overwatch workshops.
208 stars 26 forks source link

Bug: wrong map name with `_` #84

Closed Liu233w closed 5 years ago

Liu233w commented 5 years ago

When using map with name like Map.Nepal_Sanctum, workshop code Map(Nepal_ Sanctum) is generated, which should be Map(Nepal Sanctum).

An example code is shown below:

``` c# rule: "map name" if (CurrentMap() == Map.Nepal_Sanctum) { BigMessage(AllPlayers(), "hello"); } ``` generates: ``` variables { global: 0: _extendedGlobalCollection 1: _arrayBuilder 2: _arrayBuilderStore 3: _classIndexes 4: _classArray player: 0: _extendedPlayerCollection } rule("map name") { event { Ongoing - Global; } conditions { Current Map == Map(Nepal_ Sanctum); } // Action count: 1 actions { Big Message(All Players(Team(All)), Custom String("hello", Null, Null, Null)); } } ```
ItsDeltin commented 5 years ago

Thanks for the report, fixed in 0.7.2.