Merge branch 'development' into unstable-quests

# Conflicts:
#	src/main/java/emu/grasscutter/command/commands/SetPropCommand.java
This commit is contained in:
KingRainbow44 2023-04-24 21:00:03 -04:00
commit 34c3c6229f
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
2 changed files with 11 additions and 16 deletions

View File

@ -20,7 +20,7 @@
## Quick setup guide
**Note:** For support please join our [Discord](https://discord.gg/T5vZU6UyeG).
**Note**: For support please join our [Discord](https://discord.gg/T5vZU6UyeG).
### Requirements
@ -86,7 +86,7 @@ cd Grasscutter
.\gradlew jar # Compile
```
##### Linux
##### Linux (GNU)
```bash
git clone https://github.com/Grasscutters/Grasscutter.git
@ -97,10 +97,6 @@ chmod +x gradlew
You can find the output jar in the root of the project folder.
### Commands have moved to the [wiki](https://github.com/Grasscutters/Grasscutter/wiki/Commands)!
### Troubleshooting
# Quick Troubleshooting
* If compiling wasn't successful, please check your JDK installation (Make sure its JDK 17 or higher and validated JDK's bin PATH variable).
* My client doesn't connect, doesn't login, 4206, etc... - Mostly your proxy daemon setup is *the issue*. If you're using Fiddler, change the default port to anything other than 8888.
* Startup sequence: MongoDB > Grasscutter > Proxy Daemon (mitmdump, fiddler, etc.) > Game
For a list of common issues and solutions and to ask for help, please join [our Discord server](https://discord.gg/T5vZU6UyeG) and go to the support channel.

View File

@ -1,5 +1,10 @@
package emu.grasscutter.command.commands;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.IntStream;
import emu.grasscutter.command.Command;
import emu.grasscutter.command.CommandHandler;
import emu.grasscutter.data.GameData;
@ -9,9 +14,6 @@ import emu.grasscutter.game.tower.TowerLevelRecord;
import emu.grasscutter.server.packet.send.PacketOpenStateChangeNotify;
import emu.grasscutter.server.packet.send.PacketSceneAreaUnlockNotify;
import emu.grasscutter.server.packet.send.PacketScenePointUnlockNotify;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Command(
label = "setProp",
@ -22,11 +24,8 @@ import java.util.Map;
public final class SetPropCommand implements CommandHandler {
// List of map areas. Unfortunately, there is no readily available source for them in excels or
// bins.
private static final List<Integer> sceneAreas =
List.of(
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
28, 29, 32, 100, 101, 102, 103, 200, 210, 300, 400, 401, 402, 403);
Map<String, Prop> props;
private static final List<Integer> sceneAreas = IntStream.range(1, 1000).boxed().toList();
private final Map<String, Prop> props;
public SetPropCommand() {
this.props = new HashMap<>();