diff options
Diffstat (limited to 'game/gui/battle.rpy')
-rw-r--r-- | game/gui/battle.rpy | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/game/gui/battle.rpy b/game/gui/battle.rpy index 7579dce..d92a38a 100644 --- a/game/gui/battle.rpy +++ b/game/gui/battle.rpy @@ -65,7 +65,7 @@ init python: # FIXME: Allow to drag spheres around def c_swap(idx): global csid - if csid is None: + if csid == None: csid = copy.copy(idx) return o1 = copy.copy(Battle["spheres"][csid]) @@ -176,7 +176,7 @@ screen battle_core(): selected_idle ("gfx/sphere/s/"+str(Battle["spheres"][0])+".png") hover ("gfx/sphere/"+str(Battle["spheres"][0])+".png") selected_hover ("gfx/sphere/s/"+str(Battle["spheres"][0])+".png") - selected csid is 0 + selected csid == 0 action Function(c_swap, 0) keysym "alt_1" xpos 0.125 @@ -225,7 +225,7 @@ screen battle_core(): selected_idle ("gfx/sphere/s/"+str(Battle["spheres"][1])+".png") hover ("gfx/sphere/"+str(Battle["spheres"][1])+".png") selected_hover ("gfx/sphere/s/"+str(Battle["spheres"][1])+".png") - selected csid is 1 + selected csid == 1 action Function(c_swap, 1) keysym "alt_2" xpos 0.375 @@ -274,7 +274,7 @@ screen battle_core(): selected_idle ("gfx/sphere/s/"+str(Battle["spheres"][2])+".png") hover ("gfx/sphere/"+str(Battle["spheres"][2])+".png") selected_hover ("gfx/sphere/s/"+str(Battle["spheres"][2])+".png") - selected csid is 2 + selected csid == 2 action Function(c_swap, 2) keysym "alt_3" xpos 0.625 @@ -323,7 +323,7 @@ screen battle_core(): selected_idle ("gfx/sphere/s/"+str(Battle["spheres"][3])+".png") hover ("gfx/sphere/"+str(Battle["spheres"][3])+".png") selected_hover ("gfx/sphere/s/"+str(Battle["spheres"][3])+".png") - selected csid is 3 + selected csid == 3 action Function(c_swap, 3) keysym "alt_4" xpos 0.875 |