Skip to content

Commit

Permalink
Added msg, zone, and AP cost to item armor
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymtorres committed Aug 13, 2017
1 parent 9ec64e4 commit f6f83d6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/player/action/list.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ local action_list = {
antidote = {name='antidote', cost=1},
antibodies= {name='antibodies', cost=1},
syringe = {name='syringe', cost=1},
leather = {name='leather', cost=1},
firesuit = {name='firesuit', cost=1},
},
equipment = {
broadcast = {cost=3, modifier={tech = -1, radio_tech = -1},},
Expand Down
4 changes: 4 additions & 0 deletions code/player/action/zone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ function setupZone.syringe(player, inv_ID, target)
zone.target = target
end

function setupZone.leather(player, inv_ID)
zone.type = 'self'
end

---------------------------------------
---------------------------------------
-- ZOMBIE --
Expand Down
10 changes: 10 additions & 0 deletions code/player/log/getMessage.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ function description.syringe(player, inv_ID, target, inject_success, target_weak
end
end

function description.leather(player, inv_ID)
local armor_INST = player.inventory:lookup(inv_ID)
msg[1] = 'You equip '..armor_INST:getClassName()..' armor.'
end

function description.firesuit()
local armor_INST = player.inventory:lookup(inv_ID)
msg[1] = 'You equip '..armor_INST:getClassName()..' armor.'
end

---------------------------------------
---------------------------------------
-- ZOMBIE --
Expand Down

0 comments on commit f6f83d6

Please sign in to comment.