From 3ddfbbc093a641cf5e4388fa07b2564465b739ef Mon Sep 17 00:00:00 2001 From: DonBatman Date: Tue, 27 Oct 2015 10:00:28 -0700 Subject: Added points for ghosts and removed cherry reward --- pacmine/ghost.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pacmine/ghost.lua b/pacmine/ghost.lua index 6ab99dc..08167fa 100644 --- a/pacmine/ghost.lua +++ b/pacmine/ghost.lua @@ -91,7 +91,9 @@ for i in ipairs(ghosts) do self.timer = -ghosts_death_delay -- play sound and reward player minetest.sound_play("pacmine_eatghost", {pos = boardcenter,max_hear_distance = 6, object=player, loop=false}) - player:get_inventory():add_item('main', 'pacmine:cherrys') + gamestate.score = gamestate.score + 200 + pacmine.update_hud(gamestate.id, player) + minetest.chat_send_player(gamestate.player_name,"You ate a ghost!") else -- Ghost catches the player! gamestate.lives = gamestate.lives - 1 -- cgit v1.2.3