v2.4.0: rat king now wears a party hat on april fools (late I know =S)

This commit is contained in:
Evan Debenham
2024-04-05 13:24:09 -04:00
parent d76667a0e2
commit ed46d143c0
4 changed files with 23 additions and 6 deletions

View File

@@ -1038,8 +1038,10 @@ actors.mobs.npcs.ratking.crown_no=I'd rather not...
actors.mobs.npcs.ratking.crown_thankyou=Hehehe, thank you! Now go and make your king proud!
actors.mobs.npcs.ratking.crown_fine=Fine! It's not like I wanted it anyway...
actors.mobs.npcs.ratking.crown_after=Enjoying your new armor? No take-backsies!
actors.mobs.npcs.ratking.desc_festive=This rat is a little bigger than a regular marsupial rat. It's wearing a tiny festive hat instead of its usual crown. Happy Holidays!
actors.mobs.npcs.ratking.desc=This rat is a little bigger than a regular marsupial rat and it's wearing a tiny crown on its head.
actors.mobs.npcs.ratking.desc_crown=This rat is a little bigger than a regular marsupial rat. It's wearing dwarf king's crown on its head.
actors.mobs.npcs.ratking.desc_birthday=This rat is a little bigger than a regular marsupial rat. It's wearing a tiny green party hat instead of its usual crown. Happy birthday Rat King!
actors.mobs.npcs.ratking.desc_winter=This rat is a little bigger than a regular marsupial rat. It's wearing a tiny festive hat instead of its usual crown. Happy Holidays!
actors.mobs.npcs.ratking.desc=This rat is a little bigger than a regular marsupial rat. It's wearing a tiny crown on its head.
actors.mobs.npcs.sheep.name=sheep
actors.mobs.npcs.sheep.baa!=Baa!

Binary file not shown.

Before

Width:  |  Height:  |  Size: 659 B

After

Width:  |  Height:  |  Size: 681 B

View File

@@ -161,8 +161,12 @@ public class RatKing extends NPC {
@Override
public String description() {
if (Holiday.getCurrentHoliday() == Holiday.WINTER_HOLIDAYS){
return Messages.get(this, "desc_festive");
if (Dungeon.hero.armorAbility instanceof Ratmogrify){
return Messages.get(this, "desc_crown");
} else if (Holiday.getCurrentHoliday() == Holiday.APRIL_FOOLS){
return Messages.get(this, "desc_birthday");
} else if (Holiday.getCurrentHoliday() == Holiday.WINTER_HOLIDAYS){
return Messages.get(this, "desc_winter");
} else {
return super.description();
}

View File

@@ -40,10 +40,21 @@ public class RatKingSprite extends MobSprite {
public void resetAnims(){
int c = Holiday.getCurrentHoliday() == Holiday.WINTER_HOLIDAYS ? 8 : 0;
int c;
switch (Holiday.getCurrentHoliday()){
default:
c = 0;
break;
case APRIL_FOOLS:
c = 8;
break;
case WINTER_HOLIDAYS:
c = 16;
break;
}
if (Dungeon.hero != null && Dungeon.hero.armorAbility instanceof Ratmogrify){
c += 16;
c = 24;
if (parent != null) aura(0xFFFF00);
}