about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2022-12-21 22:13:29 -0500
committerelioat <elioat@tilde.institute>2022-12-21 22:13:29 -0500
commit2130cf09ce0340eb1239160dd9ecce2583322391 (patch)
tree501082aed85dfdaec40f78d59d52ac7c744ba9c3
parent3207b030bbfb70d95c8953a5be397c53e392f732 (diff)
downloaddecember-2022-2130cf09ce0340eb1239160dd9ecce2583322391.tar.gz
*
-rw-r--r--src/pokedex/pokedex.rkt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pokedex/pokedex.rkt b/src/pokedex/pokedex.rkt
index 3f8d840..962d427 100644
--- a/src/pokedex/pokedex.rkt
+++ b/src/pokedex/pokedex.rkt
@@ -88,6 +88,8 @@
       (inspector poke-data))
   (displayln (~a "name: " (hash-ref poke-data "name")))
   (displayln (~a "id:   " (hash-ref poke-data "id")))
-  (see-pokemon id))
+  (see-pokemon (hash-ref poke-data "name"))) ; using name here prevents duplicate files with different names, id.png v name.png
 
-(poke "zapdos")
\ No newline at end of file
+(poke "zapdos")
+(poke 74)
+(poke "charizard")