mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-29 04:53:33 +00:00
91b685586e
1. During the conversion of Morphia calls to the new API, some of the `Filter.eq()` calls had their `field` set to `playerId` due to a copy/paste typo. 2. Morphia 2 switches to the codec system, so anything that will be serialized in the pipeline requires the `@Entity` annotation.
47 lines
876 B
Java
47 lines
876 B
Java
package emu.grasscutter.game.gacha;
|
|
|
|
import dev.morphia.annotations.Entity;
|
|
|
|
@Entity
|
|
public class PlayerGachaBannerInfo {
|
|
private int pity5 = 0;
|
|
private int pity4 = 0;
|
|
private int failedFeaturedItemPulls = 0;
|
|
|
|
public int getPity5() {
|
|
return pity5;
|
|
}
|
|
|
|
public void setPity5(int pity5) {
|
|
this.pity5 = pity5;
|
|
}
|
|
|
|
public void addPity5(int amount) {
|
|
this.pity5 += amount;
|
|
}
|
|
|
|
public int getPity4() {
|
|
return pity4;
|
|
}
|
|
|
|
public void setPity4(int pity4) {
|
|
this.pity4 = pity4;
|
|
}
|
|
|
|
public void addPity4(int amount) {
|
|
this.pity4 += amount;
|
|
}
|
|
|
|
public int getFailedFeaturedItemPulls() {
|
|
return failedFeaturedItemPulls;
|
|
}
|
|
|
|
public void setFailedFeaturedItemPulls(int failedEventCharacterPulls) {
|
|
this.failedFeaturedItemPulls = failedEventCharacterPulls;
|
|
}
|
|
|
|
public void addFailedFeaturedItemPulls(int amount) {
|
|
failedFeaturedItemPulls += amount;
|
|
}
|
|
}
|