mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-08-31 01:37:57 +00:00
some character shapes need to be unlocked
This commit is contained in:
23
config.cpp
23
config.cpp
@@ -3569,6 +3569,11 @@ EX void pick_player_shape() {
|
|||||||
charstyle& cs = getcs();
|
charstyle& cs = getcs();
|
||||||
for(int i=0; i<pshGUARD; i++) {
|
for(int i=0; i<pshGUARD; i++) {
|
||||||
dialog::addBoolItem(XLAT(playershapes[i].name), i == (cs.charid>>1), 'a'+i);
|
dialog::addBoolItem(XLAT(playershapes[i].name), i == (cs.charid>>1), 'a'+i);
|
||||||
|
if((i == pshPrincess && !princess::everSaved) ||
|
||||||
|
(i == pshRatling && hiitemsMax(itCoral) < 25) ||
|
||||||
|
(i == pshSkeleton && hiitemsMax(itPalace) < 25) ||
|
||||||
|
(i == pshHyperbug && hiitemsMax(itRoyalJelly) < 25)
|
||||||
|
) dialog::lastItem().value = "(locked)";
|
||||||
dialog::add_action([i, &cs] {
|
dialog::add_action([i, &cs] {
|
||||||
if(i == pshPrincess) {
|
if(i == pshPrincess) {
|
||||||
if(!princess::everSaved && !autocheat && !unlock_all) {
|
if(!princess::everSaved && !autocheat && !unlock_all) {
|
||||||
@@ -3576,6 +3581,24 @@ EX void pick_player_shape() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(i == pshRatling) {
|
||||||
|
if(hiitemsMax(itCoral) < 25 && !unlock_all && !autocheat) {
|
||||||
|
addMessage(XLAT("Collect 25 %1 to unlock first!", itCoral));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(i == pshSkeleton) {
|
||||||
|
if(hiitemsMax(itPalace) < 25 && !unlock_all && !autocheat) {
|
||||||
|
addMessage(XLAT("Collect 25 %1 to unlock first!", itPalace));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(i == pshHyperbug) {
|
||||||
|
if(hiitemsMax(itRoyalJelly) < 25 && !unlock_all && !autocheat) {
|
||||||
|
addMessage(XLAT("Collect 25 %1 to unlock first!", itRoyalJelly));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
cs.charid = (cs.charid & 1) | (i << 1);
|
cs.charid = (cs.charid & 1) | (i << 1);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user