summaryrefslogtreecommitdiff
path: root/gamemode/itemsystem/items
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/itemsystem/items')
-rw-r--r--gamemode/itemsystem/items/aaaItemExample.lua (renamed from gamemode/itemsystem/items/anexample.lua)4
-rw-r--r--gamemode/itemsystem/items/elm.lua10
-rw-r--r--gamemode/itemsystem/items/platinum.lua10
-rw-r--r--gamemode/itemsystem/items/puremithril.lua10
4 files changed, 32 insertions, 2 deletions
diff --git a/gamemode/itemsystem/items/anexample.lua b/gamemode/itemsystem/items/aaaItemExample.lua
index 100096f..ee67639 100644
--- a/gamemode/itemsystem/items/anexample.lua
+++ b/gamemode/itemsystem/items/aaaItemExample.lua
@@ -8,7 +8,7 @@ ITEM.Name = "An Example"
--A description that shows up when hovering over the item in the inventory
ITEM.Description = "Why did I even write this? No one will ever read it!"
---The icon that this item users, relative to the gmsurvival/content/materials directory
+--The icon that this item uses, relative to the gmsurvival/content/materials directory
ITEM.Icon = "test.png"
--If this item has "unique data", for example batteries that run out of charge
@@ -29,7 +29,7 @@ ITEM.Actions = {
}
}
}
---]]
+]]
ITEM.Actions = {}
--Be sure to register when everything is said and done!
diff --git a/gamemode/itemsystem/items/elm.lua b/gamemode/itemsystem/items/elm.lua
new file mode 100644
index 0000000..ab62432
--- /dev/null
+++ b/gamemode/itemsystem/items/elm.lua
@@ -0,0 +1,10 @@
+ITEM = {}
+
+ITEM.Name = "Elm"
+ITEM.Description = "You can identify that this is wood."
+ITEM.Icon = "test.png"
+ITEM.UniqueData = false
+
+genericMakeDroppable(ITEM)
+
+GMS.RegisterResource(ITEM)
diff --git a/gamemode/itemsystem/items/platinum.lua b/gamemode/itemsystem/items/platinum.lua
new file mode 100644
index 0000000..b6c8985
--- /dev/null
+++ b/gamemode/itemsystem/items/platinum.lua
@@ -0,0 +1,10 @@
+ITEM = {}
+
+ITEM.Name = "Platinum"
+ITEM.Description = "Something you can craft with!"
+ITEM.Icon = "test.png"
+ITEM.UniqueData = false
+
+genericMakeDroppable(ITEM)
+
+GMS.RegisterResource(ITEM)
diff --git a/gamemode/itemsystem/items/puremithril.lua b/gamemode/itemsystem/items/puremithril.lua
new file mode 100644
index 0000000..80ad764
--- /dev/null
+++ b/gamemode/itemsystem/items/puremithril.lua
@@ -0,0 +1,10 @@
+ITEM = {}
+
+ITEM.Name = "Pure Mithril"
+ITEM.Description = "Something you can craft with!"
+ITEM.Icon = "test.png"
+ITEM.UniqueData = false
+
+genericMakeDroppable(ITEM)
+
+GMS.RegisterResource(ITEM)