Use dot notation for api methods, closes #18

This commit is contained in:
stujones11 2019-03-16 19:33:08 +00:00
parent cff296d70b
commit e415b0b9cc
6 changed files with 27 additions and 27 deletions

View file

@ -1,4 +1,4 @@
shooter:register_weapon("shooter_guns:pistol", {
shooter.register_weapon("shooter_guns:pistol", {
description = "Pistol",
inventory_image = "shooter_pistol.png",
spec = {
@ -12,7 +12,7 @@ shooter:register_weapon("shooter_guns:pistol", {
},
})
shooter:register_weapon("shooter_guns:rifle", {
shooter.register_weapon("shooter_guns:rifle", {
description = "Rifle",
inventory_image = "shooter_rifle.png",
spec = {
@ -26,7 +26,7 @@ shooter:register_weapon("shooter_guns:rifle", {
},
})
shooter:register_weapon("shooter_guns:shotgun", {
shooter.register_weapon("shooter_guns:shotgun", {
description = "Shotgun",
inventory_image = "shooter_shotgun.png",
spec = {
@ -40,7 +40,7 @@ shooter:register_weapon("shooter_guns:shotgun", {
},
})
shooter:register_weapon("shooter_guns:machine_gun", {
shooter.register_weapon("shooter_guns:machine_gun", {
description = "Sub Machine Gun",
inventory_image = "shooter_smgun.png",
spec = {