summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonBatman <serfdon@gmail.com>2015-10-27 10:00:28 -0700
committerDonBatman <serfdon@gmail.com>2015-10-27 10:00:28 -0700
commit3ddfbbc093a641cf5e4388fa07b2564465b739ef (patch)
treeffd8d0fdb7191001bc38a55b8825bb6607953fcf
parent7f5e00299066e9872c21c4999381cf4b3ae7edf2 (diff)
Added points for ghosts and removed cherry reward
-rw-r--r--pacmine/ghost.lua4
1 files changed, 3 insertions, 1 deletions
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