forked from cdrock/TourGuide
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiotm2021backupcamera
More file actions
33 lines (29 loc) · 1.48 KB
/
iotm2021backupcamera
File metadata and controls
33 lines (29 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//Backup Camera
RegisterResourceGenerationFunction("IOTMBackupCameraGenerateResource");
void IOTMBackupCameraGenerateResource(ChecklistEntry [int] resource_entries)
{
if (!lookupItem("backup camera").have()) return;
// Title
string main_title = "Backupcheek cameracity snapshots";
string [int] description;
// Entries
int backup_camera_snapsUsed = get_property_int("_backUpUses");
int totalBackupCameras = 11;
if (my_path_id() == PATH_YOU_ROBOT) {
totalBackupCameras = 16;
//for whatever awful reason, this is buggy and will miscount when you break prism until you relog
}
string url = "inventory.php?ftext=backup+camera";
int backup_camera_uses_remaining = totalBackupCameras - backup_camera_snapsUsed;
if (backup_camera_uses_remaining < 0)
{
string [int] description;
monster nostalgicMonster = (get_property_monster("lastCopyableMonster"));
description.listAppend(HTMLGenerateSpanFont(nostalgicMonster, "blue") + " is currently in your cringe compilation.");
if (!lookupItem("backup camera").equipped())
description.listAppend(HTMLGenerateSpanFont("Equip the backup camera first", "red"));
else
description.listAppend("Back up and fight the last monster you fought.");
resource_entries.listAppend(ChecklistEntryMake("__item backup camera", url, ChecklistSubentryMake(backup_camera_uses_remaining + " backup camera snaps left", "", description)).ChecklistEntrySetIDTag("Backup camera skill resource"));
}
}