aboutsummaryrefslogtreecommitdiff
path: root/gamemode/itemsystem/items/runeblank.lua
blob: e6c7af660bf0c40b16ed8bbe314dc73f51d1908d (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
local ITEM = {}
ITEM.Name 			= "Blank Rune"
ITEM.Class 			= "resource"
ITEM.Desc 			= "A blank peice of stone"
ITEM.Model 			= "models/props_junk/Rock001a.mdl"
ITEM.Icon 			= Material("wintersurvival2/hud/ws2_icons/icon_rune.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 = {
		["Rock"] = 3,
		["Sap"] = 1,
	},
	Tools = {},
}



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

function ITEM:OnEnchanted(enchanttable, nearbyrunes)
	enchanttable:AddItem("Magic Rune", 1)
end
RegisterItem(ITEM)