From b34731986ab9033bbe7cc490001c352eea32786a Mon Sep 17 00:00:00 2001 From: Noah Date: Tue, 12 Mar 2024 13:39:29 -0500 Subject: [PATCH 1/4] Add cope.level variable, change cope.level() -> cope.get_level() --- cope.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cope.lua b/cope.lua index 411dea5..581fc3a 100644 --- a/cope.lua +++ b/cope.lua @@ -1,7 +1,7 @@ cope = {} - -function cope.level() - print('Coping level = High') +cope.level = "High" +function cope.get_level() + reutnr cope.level end return cope From 1b9d624d4f27b863efd380485b252ed1add32dea Mon Sep 17 00:00:00 2001 From: Noah Date: Tue, 12 Mar 2024 13:39:54 -0500 Subject: [PATCH 2/4] Update main.lua to use cope.get_level() --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.lua b/main.lua index c1aed0a..b9017dc 100644 --- a/main.lua +++ b/main.lua @@ -1,2 +1,2 @@ local cope = require('cope') -cope.level() +print(cope.level()) From e2cc9fc57290022cc8b99b6ccfc943f421f1a838 Mon Sep 17 00:00:00 2001 From: Noah Date: Tue, 12 Mar 2024 13:41:18 -0500 Subject: [PATCH 3/4] Fix using the wrong function --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.lua b/main.lua index b9017dc..153e01e 100644 --- a/main.lua +++ b/main.lua @@ -1,2 +1,2 @@ local cope = require('cope') -print(cope.level()) +print(cope.get_level()) From 399c2aee1a715b526098a534464e444193090d2f Mon Sep 17 00:00:00 2001 From: Noah Date: Tue, 12 Mar 2024 13:42:39 -0500 Subject: [PATCH 4/4] Fix typo --- cope.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cope.lua b/cope.lua index 581fc3a..8cf1907 100644 --- a/cope.lua +++ b/cope.lua @@ -1,7 +1,7 @@ cope = {} cope.level = "High" function cope.get_level() - reutnr cope.level + return cope.level end return cope