mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-07-03 21:43:32 +00:00
Compare commits
4 Commits
v1.6.1
...
LintRatche
Author | SHA1 | Date | |
---|---|---|---|
beeaad0034 | |||
2be002057e | |||
4213cf6dea | |||
5287882f45 |
@ -43,7 +43,7 @@ sourceCompatibility = JavaVersion.VERSION_17
|
||||
targetCompatibility = JavaVersion.VERSION_17
|
||||
|
||||
group = 'xyz.grasscutters'
|
||||
version = '1.4.5-dev'
|
||||
version = '1.4.6-dev'
|
||||
|
||||
sourceCompatibility = 17
|
||||
targetCompatibility = 17
|
||||
|
@ -32,12 +32,12 @@ public class MusicGameBeatmap {
|
||||
|
||||
List<List<BeatmapNote>> beatmap;
|
||||
|
||||
public static MusicGameBeatmap getByShareId(long musicShareId){
|
||||
public static MusicGameBeatmap getByShareId(long musicShareId) {
|
||||
return DatabaseHelper.getMusicGameBeatmap(musicShareId);
|
||||
}
|
||||
|
||||
public void save(){
|
||||
if(musicShareId == 0){
|
||||
public void save() {
|
||||
if (musicShareId == 0) {
|
||||
musicShareId = new Random().nextLong(100000000000000L,999999999999999L);
|
||||
}
|
||||
DatabaseHelper.saveMusicGameBeatmap(this);
|
||||
@ -51,7 +51,7 @@ public class MusicGameBeatmap {
|
||||
.toList();
|
||||
}
|
||||
|
||||
public UgcMusicRecordOuterClass.UgcMusicRecord toProto(){
|
||||
public UgcMusicRecordOuterClass.UgcMusicRecord toProto() {
|
||||
return UgcMusicRecordOuterClass.UgcMusicRecord.newBuilder()
|
||||
.setMusicId(musicId)
|
||||
.addAllMusicTrackList(beatmap.stream()
|
||||
@ -60,7 +60,7 @@ public class MusicGameBeatmap {
|
||||
.build();
|
||||
}
|
||||
|
||||
public UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder toBriefProto(){
|
||||
public UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.Builder toBriefProto() {
|
||||
var player = DatabaseHelper.getPlayerByUid(authorUid);
|
||||
|
||||
return UgcMusicBriefInfoOuterClass.UgcMusicBriefInfo.newBuilder()
|
||||
@ -73,7 +73,7 @@ public class MusicGameBeatmap {
|
||||
.setVersion(1);
|
||||
}
|
||||
|
||||
private UgcMusicTrackOuterClass.UgcMusicTrack musicBeatmapListToProto(List<BeatmapNote> beatmapNoteList){
|
||||
private UgcMusicTrackOuterClass.UgcMusicTrack musicBeatmapListToProto(List<BeatmapNote> beatmapNoteList) {
|
||||
return UgcMusicTrackOuterClass.UgcMusicTrack.newBuilder()
|
||||
.addAllMusicNoteList(beatmapNoteList.stream()
|
||||
.map(BeatmapNote::toProto)
|
||||
@ -89,14 +89,14 @@ public class MusicGameBeatmap {
|
||||
int startTime;
|
||||
int endTime;
|
||||
|
||||
public static BeatmapNote parse(UgcMusicNoteOuterClass.UgcMusicNote note){
|
||||
public static BeatmapNote parse(UgcMusicNoteOuterClass.UgcMusicNote note) {
|
||||
return BeatmapNote.of()
|
||||
.startTime(note.getStartTime())
|
||||
.endTime(note.getEndTime())
|
||||
.build();
|
||||
}
|
||||
|
||||
public UgcMusicNoteOuterClass.UgcMusicNote toProto(){
|
||||
public UgcMusicNoteOuterClass.UgcMusicNote toProto() {
|
||||
return UgcMusicNoteOuterClass.UgcMusicNote.newBuilder()
|
||||
.setStartTime(startTime)
|
||||
.setEndTime(endTime)
|
||||
|
@ -36,7 +36,7 @@
|
||||
// musicGameBeatmap.save();
|
||||
//
|
||||
// var playerData = session.getPlayer().getActivityManager().getPlayerActivityDataByActivityType(ActivityType.NEW_ACTIVITY_MUSIC_GAME);
|
||||
// if(playerData.isEmpty()){
|
||||
// if (playerData.isEmpty()) {
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
|
@ -17,7 +17,7 @@
|
||||
//
|
||||
// var musicGameBeatmap = MusicGameBeatmap.getByShareId(req.getMusicShareId());
|
||||
//
|
||||
// if(musicGameBeatmap == null){
|
||||
// if (musicGameBeatmap == null) {
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
|
@ -17,7 +17,7 @@
|
||||
//
|
||||
// var musicGameBeatmap = MusicGameBeatmap.getByShareId(req.getMusicShareId());
|
||||
//
|
||||
// if(musicGameBeatmap == null){
|
||||
// if (musicGameBeatmap == null) {
|
||||
// session.send(new PacketMusicGameSearchBeatmapRsp(11153, req.getUnknownEnum1()));
|
||||
// return;
|
||||
// }
|
||||
|
@ -23,7 +23,7 @@ public class PacketEntityFightPropChangeReasonNotify extends BasePacket {
|
||||
.setReason(reason)
|
||||
.setChangeHpReason(changeHpReason);
|
||||
|
||||
for(int p : param){
|
||||
for (int p : param) {
|
||||
proto.addParamList(p);
|
||||
}
|
||||
|
||||
|
@ -364,23 +364,23 @@
|
||||
},
|
||||
"documentation": {
|
||||
"handbook": {
|
||||
"title": "GM Handbook",
|
||||
"title": "🇺🇸GM Handbook",
|
||||
"title_commands": "Comandos",
|
||||
"title_avatars": "Avatares",
|
||||
"title_items": "Objetos",
|
||||
"title_scenes": "Escenario",
|
||||
"title_monsters": "Monstruos",
|
||||
"header_id": "Id",
|
||||
"header_id": "🇺🇸Id",
|
||||
"header_command": "Comando",
|
||||
"header_description": "Descripción",
|
||||
"header_avatar": "Avatar",
|
||||
"header_avatar": "🇺🇸Avatar",
|
||||
"header_item": "Objeto",
|
||||
"header_scene": "Escenario",
|
||||
"header_monster": "Monstruo"
|
||||
},
|
||||
"index": {
|
||||
"title": "Documentación",
|
||||
"handbook": "GM Handbook",
|
||||
"handbook": "🇺🇸GM Handbook",
|
||||
"gacha_mapping": "JSON de mapeo del Gacha"
|
||||
}
|
||||
},
|
||||
|
@ -379,9 +379,9 @@
|
||||
"header_monster": "Monstre"
|
||||
},
|
||||
"index": {
|
||||
"title": "Documentation",
|
||||
"title": "🇺🇸Documentation",
|
||||
"handbook": "Manuel GM",
|
||||
"gacha_mapping": "Gacha mapping JSON"
|
||||
"gacha_mapping": "🇺🇸Gacha mapping JSON"
|
||||
}
|
||||
},
|
||||
"plugin": {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"messages": {
|
||||
"game": {
|
||||
"address_bind": "Server di gioco avviato su \u001B[1m\u001B[33m%s:%s\u001B[0m",
|
||||
"address_bind": "Server di gioco avviato su \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "Server di gioco avviato sulla porta %s",
|
||||
"connect": "Client connesso da %s",
|
||||
"disconnect": "Client disconnesso da %s",
|
||||
@ -9,7 +9,7 @@
|
||||
"command_error": "Errore comando:"
|
||||
},
|
||||
"dispatch": {
|
||||
"address_bind": "[Dispatch] Dispatch server avviato su \u001B[1m\u001B[33m%s:%s\u001B[0m",
|
||||
"address_bind": "[Dispatch] Dispatch server avviato su \u001b[1m\u001b[33m%s:%s\u001b[0m",
|
||||
"port_bind": "[Dispatch] Dispatch server avviato sulla porta %s",
|
||||
"request": "[Dispatch] Client %s %s richiesta: %s",
|
||||
"keystore": {
|
||||
@ -139,7 +139,8 @@
|
||||
"displays": "Display cancellati per %s.",
|
||||
"virtuals": "Virtuali cancellate per %s.",
|
||||
"everything": "Cancellato tutto per %s.",
|
||||
"description": "Elimina gli oggetti sbloccati non equipaggiati dal tuo inventario. Il valore predefinito è 4* livello 1 raffinamento 1 o inferiore, ma può essere impostato su un livello superiore." },
|
||||
"description": "Elimina gli oggetti sbloccati non equipaggiati dal tuo inventario. Il valore predefinito è 4* livello 1 raffinamento 1 o inferiore, ma può essere impostato su un livello superiore."
|
||||
},
|
||||
"coop": {
|
||||
"success": "Convocato %s nel mondo di %s.",
|
||||
"description": "Forza qualcuno a unirsi al mondo degli altri. Se nessuno viene preso di mira, ti manda comunque in modalità cooperativa."
|
||||
@ -356,7 +357,7 @@
|
||||
"available_three_stars": "Articoli a 3 stelle disponibili"
|
||||
},
|
||||
"records": {
|
||||
"title": "Gacha Records",
|
||||
"title": "🇺🇸Gacha Records",
|
||||
"date": "Data",
|
||||
"item": "oggetto"
|
||||
}
|
||||
@ -372,7 +373,7 @@
|
||||
"header_id": "ID",
|
||||
"header_command": "Comando",
|
||||
"header_description": "Descrizione",
|
||||
"header_avatar": "Avatar",
|
||||
"header_avatar": "🇺🇸Avatar",
|
||||
"header_item": "Articolo",
|
||||
"header_scene": "Scena",
|
||||
"header_monster": "Mostro"
|
||||
|
@ -247,10 +247,10 @@
|
||||
"set_message_sender": "메세지 발송자가 '%s'으로 설정되었습니다.\n계속하려면 '/sendmail <itemID|itemName|finish> [amount] [level]'을 사용하십시오.",
|
||||
"send": "%s 의 %s을 (레벨 %s)을 메세지에 첨부했습니다.\n계속 항목을 추가하거나, '/sendmail finish'을 사용해 메세지를 보낼 수 있습니다..",
|
||||
"invalid_arguments_please_use": "잘못된 인수입니다.\n '/sendmail %s'을 사용하십시오",
|
||||
"title": "<title>",
|
||||
"message": "<message>",
|
||||
"sender": "<sender>",
|
||||
"arguments": "<itemID|itemName|finish> [amount] [level]",
|
||||
"title": "🇺🇸<title>",
|
||||
"message": "🇺🇸<message>",
|
||||
"sender": "🇺🇸<sender>",
|
||||
"arguments": "🇺🇸<itemID|itemName|finish> [amount] [level]",
|
||||
"error": "오류: 잘못된 시공 단계 %s. Console에서 스택을 확인하십시오.",
|
||||
"description": "지정된 사용자에게 메세지를 보냅니다. 이 명령어의 사용법은 세부 내용에 따라 달라집니다."
|
||||
},
|
||||
@ -380,8 +380,8 @@
|
||||
},
|
||||
"index": {
|
||||
"title": "문서",
|
||||
"handbook": "GM Handbook",
|
||||
"gacha_mapping": "Gacha mapping JSON"
|
||||
"handbook": "🇺🇸GM Handbook",
|
||||
"gacha_mapping": "🇺🇸Gacha mapping JSON"
|
||||
}
|
||||
},
|
||||
"plugin": {
|
||||
|
Reference in New Issue
Block a user