为了账号安全,请及时绑定邮箱和手机立即绑定

如何在项目列表枚举上执行百分比?

如何在项目列表枚举上执行百分比?

杨__羊羊 2021-08-04 10:32:30
我正在寻找一些关于如何为我的游戏做百分比事情的提示我想要 1-98 范围内的所有花朵和 99-100 的白色/黑色花朵,以使其更加稀有,感谢您的帮助:)     public enum FlowerSuit {    WHITE_FLOWERS("white", ":white:", "470419377456414720", 1),    YELLOW_FLOWERS("yellow", ":yellow:", "470419561267855360", 1 ),    RED_FLOWERS("red", ":red:", "470419583250202644", 1),    RAINBOW_FLOWERS("rainbow", ":rainbow:", "470419602841665536", 1),           PASTEL_FLOWERS("pastel", ":pastel:", "470419629450199040", 1),    ORANGE_FLOWERS("orange", ":orange:", "470419647900942366", 1),    BLUE_FLOWERS("blue", ":blue:", "470419688753594368", 1),    BLACK_FLOWERS("black", ":black:", "470419706751352842", 1);    private final String displayName;    private final String emoticon;    private int value;    private final String id;     FlowerSuit(String displayName, String emoticon, String id, int value ) {        this.displayName = displayName;        this.emoticon = emoticon;        this.value = value;        this.id = id;    }    public String getDisplayName() {        return displayName;    }    public String getEmoticon() {        return emoticon;            }    public String getId() {        return id;    }    public int getValue() {        // TODO Auto-generated method stub        return value;    }}
查看完整描述

3 回答

  • 3 回答
  • 0 关注
  • 130 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信