Skip to content

Commit

Permalink
Updated Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
bleonheart committed Jun 9, 2024
1 parent 5f4353e commit 5654cdc
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 24 deletions.
12 changes: 6 additions & 6 deletions config.ld
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ custom_tags = {

custom_display_name_handler = function(item, default_handler)
if item.type == "function" and item.module then
if item.module.type == "aclassmod" then
if item.module.type == "meta" then
return item.module.mod_name .. ":" .. default_handler(item)
elseif item.module.type == "ahooks" then
elseif item.module.type == "hooks" then
if item.module.mod_name == "Class" then
return "CLASS:" .. default_handler(item)
elseif item.module.mod_name == "Faction" then
Expand All @@ -56,10 +56,10 @@ end
new_type("factions", "Factions", true)
new_type("classes", "Classes", true)
new_type("information", "Information", true)
new_type("alibrary", "Libraries", true)
new_type("ahooks", "Hooks", true)
new_type("aclassmod", "Meta", true)
new_type("aconfigurations", "Configurations", true)
new_type("library", "Libraries", true)
new_type("hooks", "Hooks", true)
new_type("meta", "Meta", true)
new_type("configurations", "Configurations", true)
new_type("structures", "Structures", true)
new_type("store", "Store", true)
tparam_alias("inventory", "Inventory")
Expand Down
2 changes: 1 addition & 1 deletion skeleton/schema/config/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Lilia's configuration options.
This is meant to override Lilia's configuration options.
]]
-- @configurationgeneral Lilia
-- @configuration Lilia

--- A list of available commands for use within the game.
-- Each command is represented by a table with fields defining its functionality.
Expand Down
17 changes: 1 addition & 16 deletions skeleton/schema/items/universalammo.lua
Original file line number Diff line number Diff line change
@@ -1,19 +1,4 @@
--- Structure of UniversalAmmunition Item.
-- @structureitems UniversalAmmunition

--- This table defines the fields of the universal ammo item.
-- @table Configurations
-- @realm shared
-- @field name The name of the item | **string**
-- @field desc The description of the item | **string**
-- @field model The model of the item | **string**
-- @field width The width of the item in inventory | **number**
-- @field height The height of the item in inventory | **number**
-- @field health The amount of health the item restores | **number**
-- @field ammoAmount The amount of ammunition in the box | **number**
-- @field category The category of the item | **string**
-- @field blacklistedWeapons The list of weapons that can't use this ammunition | **table**
ITEM.name = "Box of Ammunition"
ITEM.name = "Box of Ammunition"
ITEM.desc = "A box that contains sixty bullets.\nUse items with the gun you want loaded out."
ITEM.model = "models/Items/BoxSRounds.mdl"
ITEM.ammoAmount = 60
Expand Down
2 changes: 1 addition & 1 deletion skeleton/schema/schema.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This is meant to define the Schema's default information.
]]
-- @configurationgeneral Schema
-- @configuration Schema

--- A list of schema fields that define the gamemode you are making.
-- These options are defined by the 'SCHEMA' table.
Expand Down

0 comments on commit 5654cdc

Please sign in to comment.