Commit 3f610d38 authored by Sam Moore's avatar Sam Moore

Remove types_revealed from network.py

parent 8a1471b7
...@@ -1240,7 +1240,7 @@ class NetworkSender(Player,Network): ...@@ -1240,7 +1240,7 @@ class NetworkSender(Player,Network):
if selected != None and selected.colour == self.colour and len(s) > 2 and not "->" in s: if selected != None and selected.colour == self.colour and len(s) > 2 and not "->" in s:
s = " ".join(s[0:3]) s = " ".join(s[0:3])
for i in range(2): for i in range(2):
if selected.types_revealed[i] == True: if selected.types[i][0] == '?':
s += " " + str(selected.types[i]) s += " " + str(selected.types[i])
else: else:
s += " unknown" s += " unknown"
...@@ -1301,9 +1301,9 @@ class NetworkReceiver(Player,Network): ...@@ -1301,9 +1301,9 @@ class NetworkReceiver(Player,Network):
for i in range(2): for i in range(2):
selected.types[i] = str(s[3+i]) selected.types[i] = str(s[3+i])
if s[3+i] == "unknown": if s[3+i] == "unknown":
selected.types_revealed[i] = False selected.types[i] = '?'+selected.types[i]
else: else:
selected.types_revealed[i] = True selected.types[i] = selected.types[i][1:]
selected.current_type = selected.types[selected.choice] selected.current_type = selected.types[selected.choice]
else: else:
pass pass
...@@ -2633,4 +2633,4 @@ if __name__ == "__main__": ...@@ -2633,4 +2633,4 @@ if __name__ == "__main__":
sys.exit(102) sys.exit(102)
# --- main.py --- # # --- main.py --- #
# EOF - created from make on Wed Mar 27 12:42:42 WST 2013 # EOF - created from make on Wed Mar 27 13:05:44 WST 2013
...@@ -116,7 +116,7 @@ class NetworkSender(Player,Network): ...@@ -116,7 +116,7 @@ class NetworkSender(Player,Network):
if selected != None and selected.colour == self.colour and len(s) > 2 and not "->" in s: if selected != None and selected.colour == self.colour and len(s) > 2 and not "->" in s:
s = " ".join(s[0:3]) s = " ".join(s[0:3])
for i in range(2): for i in range(2):
if selected.types_revealed[i] == True: if selected.types[i][0] == '?':
s += " " + str(selected.types[i]) s += " " + str(selected.types[i])
else: else:
s += " unknown" s += " unknown"
...@@ -177,9 +177,9 @@ class NetworkReceiver(Player,Network): ...@@ -177,9 +177,9 @@ class NetworkReceiver(Player,Network):
for i in range(2): for i in range(2):
selected.types[i] = str(s[3+i]) selected.types[i] = str(s[3+i])
if s[3+i] == "unknown": if s[3+i] == "unknown":
selected.types_revealed[i] = False selected.types[i] = '?'+selected.types[i]
else: else:
selected.types_revealed[i] = True selected.types[i] = selected.types[i][1:]
selected.current_type = selected.types[selected.choice] selected.current_type = selected.types[selected.choice]
else: else:
pass pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment