Skip to content

Commit

Permalink
Merge branch 'master' into love-9-transition
Browse files Browse the repository at this point in the history
Conflicts:
	src/start.lua
  • Loading branch information
NimbusBP1729 committed Feb 4, 2014
2 parents 47e92c5 + dddc599 commit 500006b
Show file tree
Hide file tree
Showing 51 changed files with 411 additions and 374 deletions.
Binary file removed src/audio/music/anniessong.ogg
Binary file not shown.
Binary file removed src/audio/music/atleastunderground.ogg
Binary file not shown.
Binary file removed src/audio/music/bowser.ogg
Binary file not shown.
Binary file removed src/audio/music/contract.ogg
Binary file not shown.
Binary file removed src/audio/music/corneliusbattle.ogg
Binary file not shown.
Binary file removed src/audio/music/dancingqueenfull.ogg
Binary file not shown.
Binary file removed src/audio/music/daylight.ogg
Binary file not shown.
Binary file removed src/audio/music/finallybefine.ogg
Binary file not shown.
Binary file removed src/audio/music/finallyboss.ogg
Binary file not shown.
Binary file removed src/audio/music/forfeiting.ogg
Binary file not shown.
Binary file removed src/audio/music/gilbertstrikesback.ogg
Binary file not shown.
Binary file removed src/audio/music/gravity.ogg
Binary file not shown.
Binary file removed src/audio/music/kissfromjesus.ogg
Binary file not shown.
Binary file removed src/audio/music/leastitwashere.ogg
Binary file not shown.
Binary file removed src/audio/music/lindberghlean.ogg
Binary file not shown.
Binary file removed src/audio/music/medley.ogg
Binary file not shown.
Binary file removed src/audio/music/merryhappy.ogg
Binary file not shown.
Binary file removed src/audio/music/modernwarfare.ogg
Binary file not shown.
Binary file removed src/audio/music/nightmare.ogg
Binary file not shown.
Binary file removed src/audio/music/ominous.ogg
Binary file not shown.
Binary file removed src/audio/music/ridbritta.ogg
Binary file not shown.
Binary file removed src/audio/music/roxanne.ogg
Binary file not shown.
Binary file removed src/audio/music/runningthroughrain.ogg
Binary file not shown.
Binary file removed src/audio/music/studyroom.ogg
Binary file not shown.
Binary file removed src/audio/music/takethethrone.ogg
Binary file not shown.
Binary file removed src/audio/music/understandxmas.ogg
Binary file not shown.
Binary file removed src/audio/music/wayitgoes.ogg
Binary file not shown.
Binary file removed src/audio/music/whereibelong.ogg
Binary file not shown.
Binary file removed src/audio/music/wingerspeech.ogg
Binary file not shown.
Binary file removed src/audio/music/xmasrap.ogg
Binary file not shown.
Binary file removed src/audio/music/you-just-lost.ogg
Binary file not shown.
22 changes: 10 additions & 12 deletions src/blackjackgame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function state:gameMenu() -- set the game menu after card additions/changes
actualBets = self.currentBet
end

if actualBets < self.player.money then
if actualBets < self.player.money/2 then
self.options[ 3 ].active = true -- double
else
self.options[ 3 ].active = false -- double
Expand Down Expand Up @@ -481,7 +481,7 @@ function state:split()
self.playerHand[newHandNum].has_ace = true
-- no hits on splitting aces
self:dealCard('player')
self.activeHand = self.activevHand + 1
self.activeHand = self.activeHand + 1
self:dealCard('player')
self.card_complete_callback = function()
self.card_complete_callback = nil
Expand Down Expand Up @@ -567,16 +567,14 @@ function state:stand()
end
end
end
end

-- player must have at least 1 coin to continue playing
if self.player.money < 1 then
self:gameOver()
end

-- decrease current bet if player has less money than previous bet
if self.player.money < self.currentBet then
self.currentBet = self.player.money
-- player must have at least 1 coin to continue playing
if self.player.money < 1 then
self:gameOver()
end
-- decrease current bet if player has less money than previous bet
if self.player.money < self.currentBet then
self.currentBet = self.player.money
end
end

self:dealMenu()
Expand Down
10 changes: 0 additions & 10 deletions src/character.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ function Character:reset()
self.direction = 'right'
end

-- FIXME: Needed for the taco meat item
-- If a character doesn't have this costume, no effect takes place
function Character:setCostume(costume)
if costume == self.costume then
return
end

-- Stuff for magic
end

function Character:sheet()
return self:getSheet(self.costume)
end
Expand Down
8 changes: 7 additions & 1 deletion src/cheat.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
local overworld = require('overworld')
local Player = require('player')
local ItemClass = require('items/item')
local app = require 'app'

local Cheat = {}

Expand Down Expand Up @@ -37,6 +38,10 @@ local function setCheat(cheatName, turnOn)
local activations = {
give_money = function() player.money = player.money + 500 end,
max_health = function() player.health = player.max_health end,
give_gcc_key = function()
local gamesave = app.gamesaves:active()
gamesave:set('cuttriggers.throne', true)
end,
unlock_levels = function()
player.visitedLevels = {}
for _,mapInfo in pairs(overworld.zones) do
Expand Down Expand Up @@ -72,7 +77,8 @@ local function setCheat(cheatName, turnOn)
end
end
end
elseif activations[cheatName] then
end
if activations[cheatName] then
activations[cheatName]()
end
end
Expand Down
Binary file removed src/images/menu/banner.png
Binary file not shown.
Binary file removed src/images/menu/walk2.png
Binary file not shown.
Binary file removed src/images/menu/walk3.png
Binary file not shown.
Binary file removed src/images/menu/walkTroy.png
Binary file not shown.
8 changes: 8 additions & 0 deletions src/inventory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,14 @@ function Inventory:removeItem( slotIndex, pageName )
self.pages[pageName][slotIndex] = nil
end

---
-- Removes all inventory items
-- @return nil
function Inventory:removeAllItems()
for page in pairs(self.pages) do
self.pages[page] = {}
end
end
---
-- Removes a certain amount of items from the player
-- @parameter amount amount to remove
Expand Down
2 changes: 1 addition & 1 deletion src/items/consumables/tacomeat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ return{
player.punchDamage = punchDamage
player.jumpDamage = jumpDamage
player.slideDamage = slideDamage
player.character:setCostume(costume)
player.character.costume = costume
end)
for i=1,2 do
Timer.add(2*i-1, function () -- Damage over time
Expand Down
5 changes: 5 additions & 0 deletions src/level.lua
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,11 @@ function Level:update(dt)
self.player.character:reset()
local gamesave = app.gamesaves:active()
local point = gamesave:get('savepoint', {level='studyroom', name='bookshelf'})
if app.config.hardcore then
point = {level = 'studyroom', name = 'bookshelf'}
self.player.money = 0
self.player.inventory:removeAllItems()
end
Gamestate.switch(point.level, point.name)
end)
end
Expand Down
2 changes: 1 addition & 1 deletion src/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ function love.load(arg)
table.insert( cheats, string.sub( args["cheat"], from ) )
else
if args["cheat"] == "all" then
cheats = {'jump_high','super_speed','god','slide_attack','give_money','max_health','give_gcc_key','give_weapons','give_materials','give_potions','give_scrolls','give_misc','unlock_levels'}
cheats = {'jump_high','super_speed','god','slide_attack','give_money','max_health','give_gcc_key','give_weapons', 'give_materials','give_potions','give_scrolls','give_taco_meat','unlock_levels','give_master_key'}
else
cheats = {args["cheat"]}
end
Expand Down
1 change: 1 addition & 0 deletions src/nodes/enemy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ function Enemy:hurt( damage, special_damage, knockback )
self.flash = true
self.flashing = Timer.addPeriodic(.12, function() self.flash = not self.flash end)
end
if self.reviveTimer then Timer.cancel( self.reviveTimer ) end
self.reviveTimer = Timer.add( self.revivedelay, function()
self.state = 'default'
self:cancel_flash()
Expand Down
11 changes: 10 additions & 1 deletion src/npcs/hilda.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,19 @@ return {
['madam, i am on a quest']={
"I can help with that",
"I have information on many topics...",
},
['i will wear your skin']={
"My skin is my own.",
},
['stand aside']={
"I'm sorry to see you go.",
},
['throne of hawkthorne']={
"The throne is in Castle Hawkthorne, north of here.",
"You unlock the castle with the white crystal of discipline, which you must free from the black caverns.",
},
['for your hand']={
"I cannot marry someone whom I do not truly love and trust.",
},
['frog extinction']={
"You know what? My prank is going to cause a sea of laughter,",
Expand Down Expand Up @@ -448,7 +457,7 @@ return {
end,
['stay']=function(npc, player)
npc.walking = false
npc.stare = true
npc.stare = false
end,
['go home']=function(npc, player)
npc.walking = true
Expand Down
Loading

0 comments on commit 500006b

Please sign in to comment.