summaryrefslogtreecommitdiffstats
path: root/Hex.gd
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2020-07-15 10:55:47 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2020-07-15 10:55:47 +0200
commit594a82b45e5d9dcd90faad8fa4f8eb42b2c981b6 (patch)
treef44fbc21362e79fb8f9c987b542406cb7d61ca71 /Hex.gd
parent9274d1351f527de8ccee89eaccea1cf5dc141756 (diff)
downloadgodot-hexgrid-594a82b45e5d9dcd90faad8fa4f8eb42b2c981b6.zip
godot-hexgrid-594a82b45e5d9dcd90faad8fa4f8eb42b2c981b6.tar.gz
add zoom buttons, support one button mouse, add font
Diffstat (limited to 'Hex.gd')
-rw-r--r--Hex.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/Hex.gd b/Hex.gd
index 32e4083..1e343b7 100644
--- a/Hex.gd
+++ b/Hex.gd
@@ -14,8 +14,8 @@ func inspect() -> String:
if type == 0: s = 'city'
elif type == 1: s = 'wood'
elif type == 2: s = 'mountain'
- elif type == 3: s = 'impracticable'
- return "%s e:%d h:%d c:%d r:%d\n -> [%d;%d]\n -> (%d;%d)" % [s, elevation(), height(), cost(), roads, coords.x, coords.y, position.x, position.y]
+ elif type == 3: s = 'blocked'
+ return "[%d;%d]\n -> (%d;%d)\n -> %s\ne:%d h:%d c:%d r:%d" % [coords.x, coords.y, position.x, position.y, s, elevation(), height(), cost(), roads]
func has_road(o : int) -> bool:
return (o & roads) > 0