forked from jaildesigner-jailgames/jaildoctors_dilemma
es poden activar els trucos en calent
This commit is contained in:
@@ -599,8 +599,13 @@ auto Player::handleKillingTiles() -> bool {
|
||||
return false; // No se encontró ninguna colisión
|
||||
}
|
||||
|
||||
// Establece el color del jugador
|
||||
void Player::setColor() {
|
||||
// Establece el color del jugador (0 = automático según cheats)
|
||||
void Player::setColor(Uint8 color) {
|
||||
if (color != 0) {
|
||||
color_ = color;
|
||||
return;
|
||||
}
|
||||
|
||||
if (Options::cheats.invincible == Options::Cheat::State::ENABLED) {
|
||||
color_ = static_cast<Uint8>(PaletteColor::CYAN);
|
||||
} else if (Options::cheats.infinite_lives == Options::Cheat::State::ENABLED) {
|
||||
|
||||
Reference in New Issue
Block a user