Skip to content

Commit

Permalink
Add missle weapons. HACK for ammor for now
Browse files Browse the repository at this point in the history
  • Loading branch information
warmist committed Aug 13, 2017
1 parent 0b39ec5 commit c7c5d52
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 5 additions & 3 deletions equipment.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ SHOES:ITEM_SHOES_BOOTS_LOW 2
#WEAPON:ITEM_WEAPON_AXE_TRAINING
#WEAPON:ITEM_WEAPON_SWORD_SHORT_TRAINING
#WEAPON:ITEM_WEAPON_SPEAR_TRAINING
#WEAPON:ITEM_WEAPON_CROSSBOW
#WEAPON:ITEM_WEAPON_BOW
#WEAPON:ITEM_WEAPON_BLOWGUN
WEAPON:ITEM_WEAPON_CROSSBOW 15
WEAPON:ITEM_WEAPON_BOW 10
#WEAPON:ITEM_WEAPON_BLOWGUN
AMMO:ITEM_AMMO_BOLTS 5
AMMO:ITEM_AMMO_ARROWS 3
6 changes: 5 additions & 1 deletion server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,11 @@ function respond_actual_new_unit(cmd,cookies)
else
local item_t=item_data[item]
local mat_t=mat_data[mat]
add_item({type=item_t.type,subtype=item_t.subtype,mat_type=mat_t.type,mat_index=mat_t.index,count=1})
local count=1
if item_t.type==df.item_type.AMMO then --hack for now...
count=20
end
add_item({type=item_t.type,subtype=item_t.subtype,mat_type=mat_t.type,mat_index=mat_t.index,count=count})
end
end
end
Expand Down

0 comments on commit c7c5d52

Please sign in to comment.