-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LoL dailies & enabling Deck #1303
base: main
Are you sure you want to change the base?
Changes from all commits
48ecccb
86cfe7b
904ad0a
ac66777
2427e57
76640e5
fdaf10c
5a46e29
d833153
9993136
6398024
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -613,7 +613,7 @@ boolean chateauPainting() | |
|
||
boolean deck_available() | ||
{ | ||
return ((item_amount($item[Deck of Every Card]) > 0) && is_unrestricted($item[Deck of Every Card]) && auto_is_valid($item[Deck of Every Card])); | ||
return (((item_amount($item[Deck of Every Card]) > 0) && is_unrestricted($item[Deck of Every Card]) && auto_is_valid($item[Deck of Every Card])) || ((item_amount($item[Replica Deck of Every Card]) > 0) && (in_lol()))); | ||
} | ||
|
||
int deck_draws_left() | ||
|
@@ -644,7 +644,17 @@ boolean deck_draw() | |
{ | ||
return false; | ||
} | ||
string page = visit_url("inv_use.php?pwd=&which=3&whichitem=8382"); | ||
|
||
string deckItemId = ""; | ||
if(in_lol()) | ||
{ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add comment that this is the replica version specifically for LoL so folks know why we have this if statement There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please add the same comment here that you did for deck_cheat
|
||
deckItemId = "11230"; | ||
} | ||
else | ||
{ | ||
deckItemId = "8382"; | ||
} | ||
string page = visit_url("inv_use.php?cheat=1&pwd=&whichitem=" + deckItemId); | ||
page = visit_url("choice.php?pwd=&whichchoice=1085&option=1", true); | ||
return true; | ||
} | ||
|
@@ -779,8 +789,18 @@ boolean deck_cheat(string cheat) | |
} | ||
} | ||
|
||
string deckItemId = ""; | ||
|
||
string page = visit_url("inv_use.php?cheat=1&pwd=&whichitem=8382"); | ||
if(in_lol()) | ||
{ | ||
Alium58 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
//replica Deck id for when in Legacy of Loathing | ||
deckItemId = "11230"; | ||
} | ||
else | ||
{ | ||
deckItemId = "8382"; | ||
} | ||
string page = visit_url("inv_use.php?cheat=1&pwd=&whichitem=" + deckItemId); | ||
|
||
// Check that a valid card was selected, otherwise this wastes 5 draws. | ||
if(card != 0) | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,20 @@ boolean L5_getEncryptionKey() | |
} | ||
} | ||
|
||
if(!isActuallyEd() && canChew($item[Breathitin™]) && spleen_left() >= $item[Breathitin™].spleen)) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. extra paren at the very end causing checks to fail |
||
{ | ||
pullXWhenHaveY($item[Breathitin™], 1, 0); | ||
if (item_amount($item[Breathitin™]) > 0) | ||
{ | ||
use(1, $item[Breathitin™]); // get free outdoor fight charges | ||
auto_log_info("Huffing some Breathitin before looking for the encryption key. That's the stuff!","blue"); | ||
} | ||
else | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. no need for else |
||
{ | ||
auto_log_info("Couldn't pull a Breathitin. Be a lot cooler if we could.","red"); | ||
} | ||
} | ||
|
||
auto_log_info("Looking for the knob.", "blue"); | ||
return autoAdv($location[The Outskirts of Cobb\'s Knob]); | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -309,7 +309,16 @@ boolean L9_chasmBuild() | |
// make sure our progress count is correct before we do anything. | ||
visit_url("place.php?whichplace=orc_chasm&action=bridge"+(to_int(get_property("chasmBridgeProgress")))); | ||
|
||
// pull a keepsake box if we can | ||
pullXWhenHaveY($item[smut orc keepsake box], 1, 0); | ||
if (item_amount($item[smut orc keepsake box]) > 0) | ||
{ | ||
use(1, $item[smut orc keepsake box]); // get bridge parts | ||
auto_log_info("Pulled a smut orc keepsake box and opened it. Ew.","blue"); | ||
} | ||
|
||
// use any keepsake boxes we have | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah you must have been thinking about putting it here already. This is the spot attempting to pull should go There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ty for moving it to here. Also delete your if statement. It is duplicate of the next line after it |
||
if(item_amount($item[Smut Orc Keepsake Box]) > 0 && auto_is_valid($item[Smut Orc Keepsake Box])) | ||
{ | ||
use(1, $item[Smut Orc Keepsake Box]); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also check
canChew(...)
to make sure it can be consumed. Doesn't check spleen left but that is fine. For example this would make it so breath doesn't get pulled in BHYThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder to add
canChew
check for breath before pulling it