Skip to content
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

God Potion #619

Open
Goblin464 opened this issue Feb 2, 2024 · 2 comments
Open

God Potion #619

Goblin464 opened this issue Feb 2, 2024 · 2 comments
Labels
F-Addition Issue related to addition of feature or system. Improvement Something that we can improve. On hold Issue has been put on hold for various reasons.

Comments

@Goblin464
Copy link

I Think it would be a good idea to have a "God Potion" for the end game.
It might look like this:

God(Color.get(0, 5, 100, 0), 6000){

	public boolean toggleEffect(Player player, boolean addEffect) {
		player.moveSpeed += (double)( addEffect ? 1 : (player.moveSpeed > 1 ? -1 : 0) ); //SPEED
		//return true;
	
	 //HEAL
		if (addEffect) player.heal(5);
		//return true;

	//ESCAPE
		if (addEffect) {
			int playerDepth = player.getLevel().depth;

			if (playerDepth == 0) {
				// player is in overworld
				Game.notifications.add("You can't escape from here!");
				return false;
			}

			int depthDiff = playerDepth > 0 ? -1 : 1;

			World.scheduleLevelChange(depthDiff, () -> {
				Level plevel = World.levels[World.lvlIdx(playerDepth + depthDiff)];
				if (plevel != null && !plevel.getTile(player.x >> 4, player.y >> 4).mayPass(plevel, player.x >> 4, player.y >> 4, player))
					player.findStartPos(plevel, false);
			});
		}
		return true;
	}`
@Goblin464 Goblin464 added the Improvement Something that we can improve. label Feb 2, 2024
@Litorom
Copy link
Member

Litorom commented Feb 2, 2024

  1. Interesting concept
  2. Escape potion!? That’s to make it so the player escapes the floor back to the surface.
  3. I’ll let other devs decide their opinions before we act on this.

@BenCheung0422
Copy link
Member

It looks like a hybrid potion. Also, I think it might not be suitable to have a player instant large effect (escape) to be hybridized together with time-lasting effects.

@BenCheung0422 BenCheung0422 added On hold Issue has been put on hold for various reasons. F-Addition Issue related to addition of feature or system. labels Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-Addition Issue related to addition of feature or system. Improvement Something that we can improve. On hold Issue has been put on hold for various reasons.
Projects
None yet
Development

No branches or pull requests

3 participants