chiark
/
gitweb
/
~mdw
/
sod
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61d083c
)
test/chimaera.sod: Reorder Serpent tickling decision.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 7 Sep 2015 14:20:11 +0000
(15:20 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 7 Sep 2015 23:05:06 +0000
(
00:05
+0100)
It makes more sense to me to have the actions in the order they'll be
experienced.
test/chimaera.sod
patch
|
blob
|
blame
|
history
diff --git
a/test/chimaera.sod
b/test/chimaera.sod
index 5b55e93e40592227b7b079958bee42d3c216bb2e..e9b9077adb5bf107a3c68750bc66efc3b9d5beba 100644
(file)
--- a/
test/chimaera.sod
+++ b/
test/chimaera.sod
@@
-37,8
+37,8
@@
class Serpent : Animal {
void hiss() { puts("Sssss!"); }
void bite() { puts("Nom!"); }
void nml.tickle() {
- if (SERPENT__CONV_NML(me)->nml.tickles
> 2) Serpent_bite
(me);
- else Serpent_
hiss
(me);
+ if (SERPENT__CONV_NML(me)->nml.tickles
<= 2) Serpent_hiss
(me);
+ else Serpent_
bite
(me);
}
}