Skip to content

Commit 090ada5

Browse files
author
Michael Fiano
committed
Fixed some bugs from last commit.
1 parent 4e2301f commit 090ada5

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# Debug
2828
PROFILING = False
2929
SHOW_FRAME_RATE = False
30-
SHOW_RECTS = False
30+
SHOW_RECTS = True
3131
SHOW_TERRAIN = False
3232
SHOW_REGION = False
3333
SHOW_MONSTERS = True

lib/battle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class Battle(object):
99
def __init__(self, screen):
1010
self.screen = screen
1111
self.map = screen.map
12-
self.region = screen.chars.party['hero'].current_region
12+
self.region = screen.party.list['hero'].current_region
1313
self.map_monsters = self.map.region_monsters[self.region]
1414
self.battle_monsters = []
1515
self.create_monsters()

lib/gui.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,13 @@ def draw_stats(self, char, width, num):
5353

5454
shadow = 0
5555
for color in (STATS_TEXT_BGCOLOR, STATS_TEXT_FGCOLOR):
56+
5657
char_name = self.font_bg.font.render(char.name, 1, color)
57-
char_hp = self.font_bg.font.render(str(char.hp), 1, color)
5858
self.image.blit(char_name, (shadow + width, 32 + shadow))
59+
60+
char_hp = self.font_bg.font.render(str(char.hp), 1, color)
5961
self.image.blit(char_hp, (shadow + width, 32 + shadow + 8))
62+
6063
shadow -= 1
6164

6265
def update(self):

lib/states.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def show_debug(self, fps):
136136
if SHOW_RECTS:
137137
self.screen.map.layers['terrain'].image.fill(
138138
(0,0,0), self.player.collide_rect)
139-
for rect in (self.player.nowalk):
139+
for rect in (self.screen.map.nowalk):
140140
self.screen.map.layers['terrain'].image.fill(
141141
(255,255,255), rect)
142142
if SHOW_TERRAIN:

0 commit comments

Comments
 (0)