diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-24 20:32:34 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-24 20:32:34 -0400 |
| commit | 233e478e40d72a091f70f18dc6846066a4f52016 (patch) | |
| tree | cf34be714088889731736c81bd44e198c792625a /gamemode/itemsystem/quest/rougebook.lua | |
| parent | 61bc16dae5a1b61bcd237d9f0be36125829d95b1 (diff) | |
| download | artery-233e478e40d72a091f70f18dc6846066a4f52016.tar.gz artery-233e478e40d72a091f70f18dc6846066a4f52016.tar.bz2 artery-233e478e40d72a091f70f18dc6846066a4f52016.zip | |
Fix all linter warnings
Diffstat (limited to 'gamemode/itemsystem/quest/rougebook.lua')
| -rw-r--r-- | gamemode/itemsystem/quest/rougebook.lua | 138 |
1 files changed, 69 insertions, 69 deletions
diff --git a/gamemode/itemsystem/quest/rougebook.lua b/gamemode/itemsystem/quest/rougebook.lua index 409948a..302f919 100644 --- a/gamemode/itemsystem/quest/rougebook.lua +++ b/gamemode/itemsystem/quest/rougebook.lua @@ -1,69 +1,69 @@ ---[[ - A quest item for the prayer book quest -]] -do return end -local item = {} - -item.Name = "Orders of the Silent Circle" - -item.Serialize = function(self) - print("Trying to serailize!") - return "" -end - -item.DeSerialize = function(self,string) - print("Trying to deserialize!") - return self -end - -item.Shape = { - {true,true}, - {true,true}, -} - -local rougeadvice = { - "He who refuses to trim his beard will find himself in a hairy situation.", - "You'll get tired defending from a man in a car", - "You'll get exhaused attacking a man in a car.", - "Sex is not the answer, it is the question. And the answer is 'yes'.", - "The 'Darkest Hour' is when you can't find the matches.", - "If you eat beans before church, you will sit in your own pew.", - "He who seeks challenges will be puzzeled.", - "He who fishes in another man's well is likely to catch crabs.", - "Enjoy masturbation, it's sex with someone you love.", -} - -local lhint = 1 - -function item.GetOptions(self) - local options = {} - options["Read"] = function() - local readframe = vgui.Create( "DFrame" ) - readframe:SetPos( ScrW()/2 - 100, ScrH()/2 - 100) - readframe:SetSize(200,200) - readframe:SetTitle("Orders of the Silent Circle") - readframe:MakePopup() - - - local readpanel = vgui.Create( "DPanel", readframe ) - readpanel:SetPos( 5, 30 ) - readpanel:SetSize( 190, 170 ) - function readpanel:Paint(w,h) end - - - local readtext = vgui.Create( "DLabel", readpanel ) - readtext:SetPos( 40, 40 ) - readtext:SetText(rougeadvice[lhint]) - readtext:SetDark() - readtext:Dock(FILL) - readtext:SetWrap(true) - lhint = (lhint % #rougeadvice) + 1 - end - return options -end - -item.onDropped = function(self, ent) - ART.ApplyPAC(ent,"book1") -end - -nrequire("item.lua").RegisterItem(item) +-- --[[ +-- A quest item for the prayer book quest +-- ]] +-- do return end +-- local item = {} +-- +-- item.Name = "Orders of the Silent Circle" +-- +-- item.Serialize = function(self) +-- print("Trying to serailize!") +-- return "" +-- end +-- +-- item.DeSerialize = function(self,string) +-- print("Trying to deserialize!") +-- return self +-- end +-- +-- item.Shape = { +-- {true,true}, +-- {true,true}, +-- } +-- +-- local rougeadvice = { +-- "He who refuses to trim his beard will find himself in a hairy situation.", +-- "You'll get tired defending from a man in a car", +-- "You'll get exhaused attacking a man in a car.", +-- "Sex is not the answer, it is the question. And the answer is 'yes'.", +-- "The 'Darkest Hour' is when you can't find the matches.", +-- "If you eat beans before church, you will sit in your own pew.", +-- "He who seeks challenges will be puzzeled.", +-- "He who fishes in another man's well is likely to catch crabs.", +-- "Enjoy masturbation, it's sex with someone you love.", +-- } +-- +-- local lhint = 1 +-- +-- function item.GetOptions(self) +-- local options = {} +-- options["Read"] = function() +-- local readframe = vgui.Create( "DFrame" ) +-- readframe:SetPos( ScrW()/2 - 100, ScrH()/2 - 100) +-- readframe:SetSize(200,200) +-- readframe:SetTitle("Orders of the Silent Circle") +-- readframe:MakePopup() +-- +-- +-- local readpanel = vgui.Create( "DPanel", readframe ) +-- readpanel:SetPos( 5, 30 ) +-- readpanel:SetSize( 190, 170 ) +-- function readpanel:Paint(w,h) end +-- +-- +-- local readtext = vgui.Create( "DLabel", readpanel ) +-- readtext:SetPos( 40, 40 ) +-- readtext:SetText(rougeadvice[lhint]) +-- readtext:SetDark() +-- readtext:Dock(FILL) +-- readtext:SetWrap(true) +-- lhint = (lhint % #rougeadvice) + 1 +-- end +-- return options +-- end +-- +-- item.onDropped = function(self, ent) +-- ART.ApplyPAC(ent,"book1") +-- end +-- +-- nrequire("item.lua").RegisterItem(item) |
