Bastien Sevajol преди 6 години
родител
ревизия
2095c20e9a
променени са 1 файла, в които са добавени 10 реда и са изтрити 4 реда
  1. 10 4
      opencombat/gui/base.py

+ 10 - 4
opencombat/gui/base.py Целия файл

@@ -234,10 +234,16 @@ class Game(TMXGui):
234 234
             self.subject_die,
235 235
         )
236 236
 
237
-        # configs
238
-        self.move_duration_ref = float(self.config.resolve('game.move.walk_ref_time'))
239
-        self.move_fast_duration_ref = float(self.config.resolve('game.move.run_ref_time'))
240
-        self.move_crawl_duration_ref = float(self.config.resolve('game.move.crawl_ref_time'))
237
+        # configs / resources
238
+        self.move_duration_ref = float(self.config.resolve(
239
+            'game.move.walk_ref_time',
240
+        ))
241
+        self.move_fast_duration_ref = float(self.config.resolve(
242
+            'game.move.run_ref_time',
243
+        ))
244
+        self.move_crawl_duration_ref = float(self.config.resolve(
245
+            'game.move.crawl_ref_time',
246
+        ))
241 247
 
242 248
     def before_run(self) -> None:
243 249
         from opencombat.gui.move import MoveActorInteraction