This repository has been archived by the owner on Nov 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Adjusted return values of the calc_all method of gamers.lua - Adjusted template - Created file for #12 (incl some simple tests)
- Loading branch information
Showing
3 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--[[ | ||
Testclass for "Filthy Peasants" peasant | ||
©LazyProggers | ||
]]-- | ||
|
||
-- LIBARIES (uncomment to use) | ||
-- require "peasant" -- Peasant class for peasant creation, deletion, adjustment | ||
require "gamer" -- Class for global variables and some player content | ||
|
||
-- Start of the abilities.lua program | ||
|
||
-- VARIABLES | ||
|
||
-- FUNCTIONS | ||
function ability1(gpower, civilisation) | ||
if (gpower > 20) then | ||
print("Ability 1 takes effect") | ||
else | ||
print("Not enough power for that Sir.") | ||
end | ||
end | ||
|
||
-- TESTING AREA | ||
print(gpower) | ||
ability1(gpower, civilisation) | ||
|
||
--[[ | ||
Notes: | ||
Known errors: | ||
]]-- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters