Skip to content

Commit

Permalink
fixed crop and supporting (some) iPhones now
Browse files Browse the repository at this point in the history
  • Loading branch information
123FLO321 committed May 14, 2018
1 parent ac1cb61 commit 212ea2d
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 385 deletions.
6 changes: 6 additions & 0 deletions .gitignore
@@ -1 +1,7 @@
.DS_Store
xcuserdata
.build
.build_lin
.package_lin.pins
.package_lin.resolved
Package.swift.orig
Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

7 changes: 7 additions & 0 deletions Frontend/Sources/Raid-Map/InputManager.swift
Expand Up @@ -60,8 +60,15 @@ class InputManager {
} else if name == "level.txt" {
let file = File(dir.path + "/" + name)
let string = try file.readString()

// @ and M = 1 level
let result = string.trimmingCharacters(in: CharacterSet(charactersIn: "@M").inverted)
level = result.count

// fig = 2 level
let tok = string.components(separatedBy:"fig")
level += (tok.count-1)*2

if level! < 1 {
level = 1
} else if level! > 5 {
Expand Down

0 comments on commit 212ea2d

Please sign in to comment.