- UID
- 27015
- 閱讀權限
- 10
- 主題
- 16
- 帖子
- 52
- 精華
- 1
- A幣
- 202
- 在線時間
- 47 小時
- 最後登錄
- 2018-9-6
集團新軍
- 主題
- 16
- 帖子
- 52
- 精華
- 1
- 綜合社群主題發文量
- 35
- 電玩社群主題發文量
- 0
- 娛樂社群主題發文量
- 0
- 技術社群主題發文量
- 0
- 閱讀權限
- 10
- 註冊時間
- 2018-5-15
TA的每日心情 | 衰 2018-9-7 18:26 |
---|
簽到天數: 58 天 連續簽到: 0 天 [LV.5]常住居民I
|
如題
前輩們好!
小弟的情侶對戒一律功能正常
但是友情戒卻全部沒有特效
檢視了wz特效圖檔皆正常
翻閱源碼戒指相關的
GameConstants.java- public static boolean isRing(int itemId) {
- return itemId >= 1112000 && itemId < 1113000;
- }// 112xxxx - pendants, 113xxxx - belts
- //if only there was a way to find in wz files -.-
- public static boolean isEffectRing(int itemid) {
- return isFriendshipRing(itemid) || isCrushRing(itemid);
- }
- public static boolean isFriendshipRing(int itemId) {
- switch (itemId) {
- case 1112800:
- case 1112801:
- case 1112802:
- case 1112810: //new
- case 1112811: //new, doesnt work in friendship?
- case 1112812: //new, im ASSUMING it's friendship cuz of itemID, not sure.
- case 1049000:
- return true;
- }
- return false;
- }
- public static boolean isCrushRing(int itemId) {
- switch (itemId) {
- case 1112001:
- case 1112002:
- case 1112003:
- case 1112005: //new
- case 1112006: //new
- case 1112007:
- case 1112012:
- case 1112015: //new
- case 1048000:
- return true;
- }
- return false;
- }
複製代碼 以及
MapleCharacter.java的內容- public Pair<List<MapleRing>, List<MapleRing>> getRings(boolean equip) {
- MapleInventory iv = getInventory(MapleInventoryType.EQUIPPED);
- Collection<IItem> equippedC = iv.list();
- List<Item> equipped = new ArrayList<Item>(equippedC.size());
- for (IItem item : equippedC) {
- equipped.add((Item) item);
- }
- Collections.sort(equipped);
- List<MapleRing> crings = new ArrayList<MapleRing>();
- List<MapleRing> frings = new ArrayList<MapleRing>();
- MapleRing ring;
- for (Item item : equipped) {
- if (item.getRing() != null) {
- ring = item.getRing();
- ring.setEquipped(true);
- if (GameConstants.isFriendshipRing(item.getItemId()) || GameConstants.isCrushRing(item.getItemId())) {
- if (equip) {
- if (GameConstants.isCrushRing(item.getItemId())) {
- crings.add(ring);
- } else if (GameConstants.isFriendshipRing(item.getItemId())) {
- frings.add(ring);
- }
- } else {
- if (crings.size() == 0 && GameConstants.isCrushRing(item.getItemId())) {
- crings.add(ring);
- } else if (frings.size() == 0 && GameConstants.isFriendshipRing(item.getItemId())) {
- frings.add(ring);
- } //for 3rd person the actual slot doesnt matter, so we'll use this to have both shirt/ring same?
- //however there seems to be something else behind this, will have to sniff someone with shirt and ring, or more conveniently 3-4 of those
- }
- }
- }
- }
- if (equip) {
- iv = getInventory(MapleInventoryType.EQUIP);
- for (IItem item : iv.list()) {
- if (item.getRing() != null && GameConstants.isCrushRing(item.getItemId())) {
- ring = item.getRing();
- ring.setEquipped(false);
- if (GameConstants.isFriendshipRing(item.getItemId())) {
- frings.add(ring);
- } else if (GameConstants.isCrushRing(item.getItemId())) {
- crings.add(ring);
- }
- }
- }
- }
- Collections.sort(frings, new MapleRing.RingComparator());
- Collections.sort(crings, new MapleRing.RingComparator());
- return new Pair<List<MapleRing>, List<MapleRing>>(crings, frings);
- }
複製代碼 分別拿去比對自己手上持有的其他端的源碼
也沒發現有什麼不同的地方
請問如果wz沒問題 源碼也沒問題
那到底還有哪裡有問題呢?
|
|