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
An ID Bomb is a kind of thing. An ID Bomb is portable. An ID Bomb can be disarmed, armed or dead. An ID Bomb is disarmed. The description of an ID Bomb is "[if disarmed]A small home-made device consisting of the flash and capacitor from a disposable camera, the radio chip from a disposable cell phone and a small homebrew timing circuit. It can be armed using its single button.[otherwise if armed]The LED labelled 'ARMED' is blinking green at increasingly shorter intervals.[otherwise]This ID Bomb looks slightly scorched and smells of burnt plastic." | |
In the backpack are ten ID Bombs. | |
At the time when the ID Bomb detonates: | |
say "There is a bright flash and nearly-ultrasonic whine as the ID Bomb discharges its capacitor through its radio chip![line break]"; | |
now the player is suspect; | |
now the noun is dead. | |
The Blasting Charge is portable. The Blasting Charge can be safe or fuzed. The Blasting Charge is safe. The Blasting Charge can be set or unset. The Blasting Charge is unset. The description of the B |
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
At the time when an explosion occurs: | |
repeat with activeMunition running through exploding explosives: | |
if the activeMunition is an ID bomb: | |
if the location of the activeMunition is the location: | |
say "There is a bright flash and nearly-ultrasonic whine as the ID Bomb discharges its capacitor through its radio chip! You feel a slight tickle in your skull from your dead Mit-Klein bottle circuits. The lights flicker."; | |
now the player is suspect; | |
now the activeMunition is exploded; | |
otherwise: | |
say "The lights flicker very slightly. In the distance, you hear murmuring."; | |
otherwise if the activeMunition is the Blasting Charge: |
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
To set the light level: | |
let arealight be 0cp; | |
let lights be the list of luminous things; | |
let litdevices be the list of luminous devices; | |
add litdevices to lights; | |
repeat with luminant running through lights: | |
say "LUMOS - [luminant]: [candlepower of luminant]."; | |
now arealight is arealight plus candlepower of luminant; | |
say "[arealight]."; |
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
"SubMap" by "The Custodian" | |
When play begins, say "Welcome to a super-sketchy notional Los Angeles Class attack submarine, the USS Aardvark!" | |
Chapter 0 - Setup | |
Forward is a direction. The opposite of forward is aft. | |
Index map with Forward mapped as east. | |
Aft is a direction. The opposite of aft is forward. | |
Index map with aft mapped as west. |
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
[microwaving] | |
Microwaving is an action applying to one thing. | |
Understand "microwave [something]" as microwaving. | |
Understand "cook [something]" as microwaving. | |
Understand "heat [something]" as microwaving. | |
Understand "reheat [something]" as microwaving. | |
Check microwaving: | |
Unless the microwave oven is in the location, say "How do you propose to do that?" instead; | |
Unless the microwave is empty: |
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
"test" by "custo" | |
Combining it with is an action applying to two carried things. | |
Understand "combine [something] and [something]" as combining it with. | |
Understand "combine [something] with [something]" as combining it with. | |
Understand the command "attach" as something new. Understand "attach [something] to [something]" as combining it with. | |
The combining it with action has an object called the item built. | |
Setting action variables for combining something with something: |
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
[microwaving] | |
Microwaving is an action applying to one thing. | |
Understand "microwave [something]" as microwaving. | |
Understand "cook [something]" as microwaving. | |
Understand "heat [something]" as microwaving. | |
Understand "reheat [something]" as microwaving. | |
Check microwaving: | |
Unless the microwave oven is in the location, say "How do you propose to do that?" instead; | |
Unless the microwave is empty: |
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
line = '127.0.0.1 gateway.internal gateway' | |
file = Chef::Util::FileEdit.new('/etc/hosts') | |
file.insert_line_if_no_match(/#{line}/, line) | |
file.write_file |
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
directories = %w( /dir/one /dir/two /dir/three ) | |
directories.each do |dir| | |
directory dir do | |
owner "foo" | |
mode 0755 | |
end | |
end |
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
license_file_contents = NIL | |
if Chef::DataBag.list.key?('pmta_licenses') | |
Chef::Log.warn("Found pmta_licenses data bag...") | |
begin | |
license_file_contents = data_bag_item("pmta_licenses", node['hostname'])['license'] | |
Chef::Log.warn("found hostname license in data bag...") | |
file "/etc/pmta/license" do | |
owner 'pmta' | |
group 'pmta' | |
mode 0640 |