From cfd19dcdb5ad7b623b3b7961577af6e9bbe18520 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Mon, 17 Oct 2011 01:58:38 +0300 Subject: Fix punching of oerkkis --- src/content_sao.cpp | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'src/content_sao.cpp') diff --git a/src/content_sao.cpp b/src/content_sao.cpp index 9569b6586..61a2df255 100644 --- a/src/content_sao.cpp +++ b/src/content_sao.cpp @@ -684,11 +684,25 @@ std::string Oerkki1SAO::getStaticData() return os.str(); } -u16 Oerkki1SAO::punch(const std::string &toolname, v3f dir) +u16 Oerkki1SAO::punch(const std::string &toolname, v3f dir, + const std::string &playername) { m_speed_f += dir*12*BS; - u16 amount = 20; + u16 amount = 5; + /* See tool names in inventory.h */ + if(toolname == "WSword") + amount = 10; + if(toolname == "STSword") + amount = 12; + if(toolname == "SteelSword") + amount = 16; + if(toolname == "STAxe") + amount = 7; + if(toolname == "SteelAxe") + amount = 9; + if(toolname == "SteelPick") + amount = 7; doDamage(amount); return 65536/100; } -- cgit v1.2.3