aboutsummaryrefslogtreecommitdiff
path: root/gamemode/itemsystem/items/runenature.lua
blob: 286a95753fe18f56d2ac34b527ccbec10444e84c (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
32
33
34
35
36
37
38
39
ITEM.Name 			= "Nature Rune"
ITEM.Class 			= "resource"
ITEM.Desc 			= "A blank peice of stone"
ITEM.Model 			= "models/props_combine/breenlight.mdl"
ITEM.Icon 			= Material("wintersurvival2/hud/ws2_icons/icon_runenature.png")

ITEM.Structure = {
	{
		Bone = "ValveBiped.Bip01_R_Hand",
		Model = "models/props_junk/rock001a.mdl",
		Size = Vector(1,1,1),
		Pos = Vector(3,-1.6,0.5),
		Ang = Angle(0,0,0),
	},
}

ITEM.Recipe		= {
	Resources = {
		["Blank Rune"] = 1,
		["Sap"] = 1,
		["Berry"] = 1,
		["Vine"] = 1
	},
	Tools = {},
}



ITEM.Damage 	= 1
ITEM.Range 		= 64
ITEM.CD 		= 1

function ITEM:OnUse(user)
	if(CLIENT) then return end
	if not user then return end
	user:SetHealth(math.min(100,user:Health()+25))
	user:AddFatigue(10)
end