From 84a1edc3b8d7b9e1d0994c3b7eb623dc17d3129b Mon Sep 17 00:00:00 2001 From: PeridexisErrant Date: Sat, 15 Aug 2015 16:43:50 +1000 Subject: [PATCH] Add initial comments to some scripts --- scripts/autounsuspend.rb | 2 ++ scripts/ban-cooking.rb | 4 ++-- scripts/fixnaked.lua | 2 ++ scripts/unsuspend.rb | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/autounsuspend.rb b/scripts/autounsuspend.rb index 2c474e993..94c6b1f26 100644 --- a/scripts/autounsuspend.rb +++ b/scripts/autounsuspend.rb @@ -1,3 +1,5 @@ +# un-suspend all jobs, on a recurring basis + class AutoUnsuspend attr_accessor :running diff --git a/scripts/ban-cooking.rb b/scripts/ban-cooking.rb index 9f21bb01a..544447277 100644 --- a/scripts/ban-cooking.rb +++ b/scripts/ban-cooking.rb @@ -1,3 +1,5 @@ +# convenient way to ban cooking categories of food + already_banned = {} kitchen = df.ui.kitchen kitchen.item_types.length.times { |i| @@ -84,5 +86,3 @@ $script_args.each do |arg| puts "ban-cooking seeds - bans cooking of plants that have seeds (tree seeds don't count)" end end - -# vim: et:sw=4:ts=4 diff --git a/scripts/fixnaked.lua b/scripts/fixnaked.lua index 3f1ee6fdd..6e154440f 100644 --- a/scripts/fixnaked.lua +++ b/scripts/fixnaked.lua @@ -1,3 +1,5 @@ +--removes unhappy thoughts due to lack of clothing + function fixnaked() local total_fixed = 0 local total_removed = 0 diff --git a/scripts/unsuspend.rb b/scripts/unsuspend.rb index 690ce6f03..0e1f52f35 100644 --- a/scripts/unsuspend.rb +++ b/scripts/unsuspend.rb @@ -1,3 +1,5 @@ +# un-suspend all jobs, one time only + joblist = df.world.job_list.next count = 0