Skip to content

Commit 7e188ec

Browse files
committed
Hate block detection + README update
1 parent 8c64367 commit 7e188ec

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Hides islands you haven't found yet.
55

66
Run with `python starspawn.py` to generate an image based on a save in the same folder.
77

8+
Requires [pillow](https://pypi.org/project/Pillow/)
9+
810
## Flags
911
All flags are optional.
1012

@@ -20,11 +22,3 @@ All flags are optional.
2022
| Tile | -t, --tile | none | Use custom 12x12 tileset (UNOFFICIAL, EXPERIMENTAL) |
2123
| Pixel | -p, --pixel | none | Use pixel tileset |
2224

23-
## Requirements
24-
25-
Pillow (PIL fork) for python
26-
27-
## TODO:
28-
29-
Unexploded Hate blocks are not detected.
30-
Finished gateways are not detected.

starspawn.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,8 @@ class BlockHate(Block):
317317
index = 6
318318

319319
def __init__(self, offset, modifier):
320-
# TODO: Correct offset
321320
super().__init__(offset, modifier)
322-
if offset == 1:
321+
if offset == 2:
323322
self.tile = self.tiles[0]
324323
else:
325324
self.tile = self.tiles[1]
@@ -589,7 +588,7 @@ def find_island(self, x, y):
589588
if cell not in search:
590589
search.add(cell)
591590
coord, rel = cell
592-
# TODO: FIX
591+
# TODO: FIX (edit: thanks, me)
593592
if coord in self.structs:
594593
islands.add(coord)
595594
next.put(cell)

0 commit comments

Comments
 (0)