diff options
author | bibo38 <bibo38@github.com> | 2015-07-17 01:09:06 +0200 |
---|---|---|
committer | bibo38 <bibo38@github.com> | 2015-07-17 01:09:06 +0200 |
commit | 6a27ec2ea0a707d44580dc19e52bb4b6181bb403 (patch) | |
tree | c754094876237a8cf1f331071c8adc3e428140cf /src/Mobs/Rabbit.cpp | |
parent | Merge pull request #2363 from scribblemaniac/improve-spider-ai (diff) | |
download | cuberite-6a27ec2ea0a707d44580dc19e52bb4b6181bb403.tar cuberite-6a27ec2ea0a707d44580dc19e52bb4b6181bb403.tar.gz cuberite-6a27ec2ea0a707d44580dc19e52bb4b6181bb403.tar.bz2 cuberite-6a27ec2ea0a707d44580dc19e52bb4b6181bb403.tar.lz cuberite-6a27ec2ea0a707d44580dc19e52bb4b6181bb403.tar.xz cuberite-6a27ec2ea0a707d44580dc19e52bb4b6181bb403.tar.zst cuberite-6a27ec2ea0a707d44580dc19e52bb4b6181bb403.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Rabbit.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/Mobs/Rabbit.cpp b/src/Mobs/Rabbit.cpp index c7f3d58f0..9d10212bf 100644 --- a/src/Mobs/Rabbit.cpp +++ b/src/Mobs/Rabbit.cpp @@ -10,7 +10,20 @@ cRabbit::cRabbit(void) : - super("Rabbit", mtRabbit, "mob.rabbit.idle", "mob.rabbit.death", 0.82, 0.68) + cRabbit(static_cast<eRabbitType>(cFastRandom().NextInt( + static_cast<UInt8>(eRabbitType::SaltAndPepper) + 1 // Max possible Rabbit-Type + )), 0) +{ +} + + + + + +cRabbit::cRabbit(eRabbitType Type, int MoreCarrotTicks) : + super("Rabbit", mtRabbit, "mob.rabbit.idle", "mob.rabbit.death", 0.82, 0.68), + m_Type(Type), + m_MoreCarrotTicks(MoreCarrotTicks) { } |