aboutsummaryrefslogtreecommitdiff
path: root/gamemode/itemsystem/items/heartofbeast.lua
blob: 75acfdf021a3a5710d3f7f4fc8b04c0f936222b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
local ITEM = {}
ITEM.Name 			= "Heart of Beast"
ITEM.Desc 			= "The heart of a wild beast"
ITEM.Class 			= "Other"
ITEM.Model			= "models/props_combine/breenlight.mdl"
ITEM.Icon			= Material("wintersurvival2/hud/ws1_icons/icon_rock")
ITEM.Burnable 		= false
ITEM.CD				= 0.3
ITEM.Range			= 120
ITEM.HoldType		= "melee"

ITEM.Structure 		= {}
ITEM.Recipe			= nil
ITEM.Tools			= nil
ITEM.CookCD			= 1
ITEM.CookProduct	= nil
ITEM.Ghost			= nil

--These are just here to tell the editors/developers what functions are available.. dont un-comment them out, as this could affect all the items.

function ITEM:OnEnchanted(enchanttalbe, nearbyrunes)
	if math.random(0,1) == 0 then
		enchanttalbe:AddItem("Fireball",1)
	else
		enchanttalbe:AddItem("Teleport",1)
	end
end



RegisterItem(ITEM)