Skip to content

Commit

Permalink
TGT corrections
Browse files Browse the repository at this point in the history
  • Loading branch information
bmichotte committed Aug 19, 2015
1 parent e6cd0f5 commit 9b86814
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion app/controllers/preferences/general_preferences_layout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class GeneralPreferencesLayout < PreferencesLayout
'koKR' => 'ko_KR',
'plPL' => 'pl_PL',
'ptBR' => 'pt_BR',
'ptPT' => 'pt_PT',
'ruRU' => 'ru_RU',
'zhCN' => 'zh_CN',
'zhTW' => 'zh_TW'
Expand Down
6 changes: 3 additions & 3 deletions app/log/log_observer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def find_last_game_start(file_handle)
found_spectator_start = true
elsif line.include?('End Spectator')
offset = temp_offset
elsif line.include?('CREATE_GAME')
elsif line.include?('CREATE_GAME') && line.include?('GameState.')
if found_spectator_start
found_spectator_start = false
next
Expand Down Expand Up @@ -190,7 +190,7 @@ def analyze(line)
#return

## [POWER]
if line =~ /^\[Power\]/
if line =~ /^\[Power\] GameState\./
# game start
if line =~ /CREATE_GAME/
start_game
Expand Down Expand Up @@ -314,7 +314,7 @@ def analyze(line)
@spectating = true
#game_end

elsif (match = /.*ACTION_START.*id=(\w*).*cardId=(\w*).*SubType=POWER.*Target=(.+)/i.match(line))
elsif (match = /.*ACTION_START.*id=(\w*).*cardId=(\w*).*BlockType=POWER.*Target=(.+)/i.match(line))
id = match[1]
local_id = match[2]
target = match[3]
Expand Down
2 changes: 1 addition & 1 deletion app/utilities/image_cache.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class ImageCache
# usefull if we need to force reloading of images
IMAGES_VERSION = 1
IMAGES_VERSION = 2

class << self

Expand Down

0 comments on commit 9b86814

Please sign in to comment.