Skip to content

Commit e72a587

Browse files
committed
hoc2015: extra condition for one level.
In the multiple_characters level, we can use the new success criteria which counts item collects and creates to detect the case in which at least one mouse droid has been collected, but only one has been created (i.e. the one we started with) indicating a lack of new mouse droid creations. Previously the level would time out before detecting this condition, but now we can end early and explain to the user.
1 parent 4594271 commit e72a587

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

apps/i18n/studio/en_us.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,10 +714,8 @@
714714
"failedAddCharactersTimeoutBlockly": "Use three \"add a Puffer Pig\" blocks at the top of your program to add Puffer Pigs when you hit run. Now go get them.",
715715
"failedChainCharactersTimeout": "You need to get 8 Mynocks. Can you make two (or more) of them appear every time you get a Tauntaun? Make it easier by adding more Mynocks.",
716716
"failedChainCharactersTimeoutGotSome": "Congratulations, you added code to make Mynocks. You can go to the next puzzle or try again to get 8 of them.",
717-
718717
"failedMultiplyCharactersTimeout": "You need to get 20 Mouse Droids. Make sure you add two or more Mouse Droids every time you get one.",
719718
"failedMultiplyCharactersTimeoutBlockly": "You need to get 20 Mouse Droids. Use the \"add a Mouse Droid\" command inside the \"when get Mouse Droid\" event to add two or more Mouse Droids every time you get one.",
720-
721719
"failedMultiplyCharactersTimeoutGotSome": "Congratulations, you added code to make Mouse Droids. You can go to the next puzzle or try again to get 20 Mouse Droids. Try making it easier by adding more of them! (Press and hold the keys on your keyboard (or screen) to move faster.)",
722720
"failedChangeSettingTimeout": "Get three Rebel Pilots to move on.",
723721
"failedChangeSettingSettings": "Make the game your own. To pass this puzzle, you need to change your droid and set its speed."

apps/src/studio/levels.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2755,6 +2755,11 @@ levels.js_hoc2015_multiply_characters = {
27552755
'progressConditions' : [
27562756
{ required: { 'collectedItemsAtOrAbove': 20 },
27572757
result: { success: true, message: msg.successCharacter1() } },
2758+
{ required: {
2759+
'collectedSpecificItemsAtOrAbove': { className: "mousedroid", count: 1 },
2760+
'createdSpecificItemsBelow': { className: "mousedroid", count: 2 }
2761+
},
2762+
result: { success: false, message: msg.failedMultiplyCharactersTimeout() } },
27582763
{ required: { 'timedOut': true, 'collectedItemsAtOrAbove': 2},
27592764
result: { success: false, canPass: true, message: msg.failedMultiplyCharactersTimeoutGotSome() } },
27602765
{ required: { 'timedOut': true },

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy