From be98bd0c32c2db5c270950def94e33472b1cc1ef Mon Sep 17 00:00:00 2001 From: ryo_saeba Date: Sun, 8 Jul 2012 15:12:02 +0000 Subject: [PATCH] Add 'drop' and 'pickup' tests. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@18350 282e977c-c81d-0410-88c4-b93c2d0d6712 --- test/cfanim | 460 +++++++++++++++++--------------- test/cfanim.take.drop.animation | 21 ++ 2 files changed, 266 insertions(+), 215 deletions(-) create mode 100644 test/cfanim.take.drop.animation diff --git a/test/cfanim b/test/cfanim index 5deb829fa..3aaf12a71 100644 --- a/test/cfanim +++ b/test/cfanim @@ -4,7 +4,7 @@ width 20 height 20 msg Created: 2008-05-10 Nicolas Weeger -Modified: 2010-05-30 Nicolas Weeger +Modified: 2012-07-08 Nicolas Weeger endmsg end arch pstone_1 @@ -274,6 +274,7 @@ x 3 y 5 end arch a_townsman2 +name dancer x 3 y 5 arch event_time @@ -789,6 +790,18 @@ arch pstone_1 x 9 y 3 end +arch emerald +x 9 +y 3 +end +arch amethyst +x 9 +y 3 +end +arch gem +x 9 +y 3 +end arch pstone_1 x 9 y 4 @@ -880,6 +893,23 @@ arch pstone_1 x 10 y 6 end +arch farmer +name take and drop tester +msg +@match * +Say 'take_drop' +endmsg +x 10 +y 6 +arch gem +end +arch amethyst +end +arch event_say +title Animator +slaying /test/cfanim.take.drop.animation +end +end arch pstone_1 x 10 y 7 @@ -1214,9 +1244,222 @@ arch pstone_1 x 14 y 7 end -arch conjurer +arch pstone_1 x 14 +y 8 +end +arch pstone_1 +x 14 +y 9 +end +arch pstone_1 +x 14 +y 10 +end +arch pstone_1 +x 14 +y 11 +end +arch pstone_1 +x 14 +y 12 +end +arch pstone_1 +x 14 +y 13 +end +arch pstone_1 +x 14 +y 14 +end +arch pstone_1 +x 14 +y 15 +end +arch pstone_1 +x 14 +y 16 +end +arch pstone_1 +x 14 +y 17 +end +arch pstone_1 +x 14 +y 18 +end +arch pstone_1 +x 14 +y 19 +end +arch pstone_1 +x 15 +end +arch pstone_1 +x 15 +y 1 +end +arch pstone_1 +x 15 +y 2 +end +arch pstone_1 +x 15 +y 3 +end +arch pstone_1 +x 15 +y 4 +end +arch pstone_1 +x 15 +y 5 +end +arch pstone_1 +x 15 +y 6 +end +arch pstone_1 +x 15 y 7 +end +arch pstone_1 +x 15 +y 8 +end +arch pstone_1 +x 15 +y 9 +end +arch pstone_1 +x 15 +y 10 +end +arch pstone_1 +x 15 +y 11 +end +arch pstone_1 +x 15 +y 12 +end +arch pstone_1 +x 15 +y 13 +end +arch pstone_1 +x 15 +y 14 +end +arch pstone_1 +x 15 +y 15 +end +arch pstone_1 +x 15 +y 16 +end +arch pstone_1 +x 15 +y 17 +end +arch pstone_1 +x 15 +y 18 +end +arch pstone_1 +x 15 +y 19 +end +arch pstone_1 +x 16 +end +arch pstone_1 +x 16 +y 1 +end +arch pstone_1 +x 16 +y 2 +end +arch pstone_1 +x 16 +y 3 +end +arch pstone_1 +x 16 +y 4 +end +arch pstone_1 +x 16 +y 5 +end +arch pstone_1 +x 16 +y 6 +end +arch pstone_1 +x 16 +y 7 +end +arch pstone_1 +x 16 +y 8 +end +arch pstone_1 +x 16 +y 9 +end +arch pstone_1 +x 16 +y 10 +end +arch pstone_1 +x 16 +y 11 +end +arch pstone_1 +x 16 +y 12 +end +arch pstone_1 +x 16 +y 13 +end +arch pstone_1 +x 16 +y 14 +end +arch pstone_1 +x 16 +y 15 +end +arch pstone_1 +x 16 +y 16 +end +arch pstone_1 +x 16 +y 17 +end +arch pstone_1 +x 16 +y 18 +end +arch pstone_1 +x 16 +y 19 +end +arch pstone_1 +x 17 +end +arch pstone_1 +x 17 +y 1 +end +arch conjurer +x 17 +y 1 stand_still 1 arch event_say title Python @@ -1232,219 +1475,6 @@ slaying /test/cfanim.conjurer end end arch pstone_1 -x 14 -y 8 -end -arch pstone_1 -x 14 -y 9 -end -arch pstone_1 -x 14 -y 10 -end -arch pstone_1 -x 14 -y 11 -end -arch pstone_1 -x 14 -y 12 -end -arch pstone_1 -x 14 -y 13 -end -arch pstone_1 -x 14 -y 14 -end -arch pstone_1 -x 14 -y 15 -end -arch pstone_1 -x 14 -y 16 -end -arch pstone_1 -x 14 -y 17 -end -arch pstone_1 -x 14 -y 18 -end -arch pstone_1 -x 14 -y 19 -end -arch pstone_1 -x 15 -end -arch pstone_1 -x 15 -y 1 -end -arch pstone_1 -x 15 -y 2 -end -arch pstone_1 -x 15 -y 3 -end -arch pstone_1 -x 15 -y 4 -end -arch pstone_1 -x 15 -y 5 -end -arch pstone_1 -x 15 -y 6 -end -arch pstone_1 -x 15 -y 7 -end -arch pstone_1 -x 15 -y 8 -end -arch pstone_1 -x 15 -y 9 -end -arch pstone_1 -x 15 -y 10 -end -arch pstone_1 -x 15 -y 11 -end -arch pstone_1 -x 15 -y 12 -end -arch pstone_1 -x 15 -y 13 -end -arch pstone_1 -x 15 -y 14 -end -arch pstone_1 -x 15 -y 15 -end -arch pstone_1 -x 15 -y 16 -end -arch pstone_1 -x 15 -y 17 -end -arch pstone_1 -x 15 -y 18 -end -arch pstone_1 -x 15 -y 19 -end -arch pstone_1 -x 16 -end -arch pstone_1 -x 16 -y 1 -end -arch pstone_1 -x 16 -y 2 -end -arch pstone_1 -x 16 -y 3 -end -arch pstone_1 -x 16 -y 4 -end -arch pstone_1 -x 16 -y 5 -end -arch pstone_1 -x 16 -y 6 -end -arch pstone_1 -x 16 -y 7 -end -arch pstone_1 -x 16 -y 8 -end -arch pstone_1 -x 16 -y 9 -end -arch pstone_1 -x 16 -y 10 -end -arch pstone_1 -x 16 -y 11 -end -arch pstone_1 -x 16 -y 12 -end -arch pstone_1 -x 16 -y 13 -end -arch pstone_1 -x 16 -y 14 -end -arch pstone_1 -x 16 -y 15 -end -arch pstone_1 -x 16 -y 16 -end -arch pstone_1 -x 16 -y 17 -end -arch pstone_1 -x 16 -y 18 -end -arch pstone_1 -x 16 -y 19 -end -arch pstone_1 -x 17 -end -arch pstone_1 -x 17 -y 1 -end -arch pstone_1 x 17 y 2 end diff --git a/test/cfanim.take.drop.animation b/test/cfanim.take.drop.animation new file mode 100644 index 000000000..9600631a4 --- /dev/null +++ b/test/cfanim.take.drop.animation @@ -0,0 +1,21 @@ +[Config] +name= CFAnim take and drop test +victimtype= object +victim= who +unique= no +always_delete= no +paralyzed= yes +time_representation= second +errors_allowed= yes +verbose= yes +animation= take_drop +invisible= no +wizard= no +[take_drop] +0 say I'll go fetch an emerald for you. +1 moveto 9 3 +1 pickup_object emerald +1 moveto 10 7 +1 drop_object emerald +1 moveto 10 6 +0 say here you go.