summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2024-08-19 15:58:52 +0200
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-03-07 22:27:48 +0100
commitca0b74e0f52aef36b929a2059fab62c192c620f6 (patch)
tree14f0c461df4a3ec14a03187e8987be0f79215bcd /src/gui
parent9d1c20860e8a5b8e7d5a4fb53c2ddb1c372bad7f (diff)
downloadmana-ca0b74e0f52aef36b929a2059fab62c192c620f6.tar.gz
mana-ca0b74e0f52aef36b929a2059fab62c192c620f6.tar.bz2
mana-ca0b74e0f52aef36b929a2059fab62c192c620f6.tar.xz
mana-ca0b74e0f52aef36b929a2059fab62c192c620f6.zip
Updated manaserv protocol to version 9
This extends the messages regarding abilities, replacing the specific "attack" messages. It also unifies attribute handling, with a generic system replacing specific variables for attributes like level, xp and skills. The inventory and equipment handling was adjusted such that equipped items stay in the inventory. Support for quest states was added. Added: * GPMSG_ABILITY_REMOVED (mana/manaserv@e3fcc1a47db312933a0f5b7e725c5779a1a45722) * GPMSG_ABILITY_COOLDOWN (mana/manaserv@c2f00b2f3ba920cb25333d19a1d37d251342caf8) * GPMSG_BEING_ABILITY_POINT * GPMSG_BEING_ABILITY_BEING (mana/manaserv@2f2393b6d190deb8958fcb806b58418508d25e28) * GPMSG_ATTRIBUTE_POINTS_STATUS (mana/manaserv@1e5a15c0a5e24fb4b358fff75a7082d65496e1f9) * PGMSG_USE_ABILITY_ON_DIRECTION (mana/manaserv@05fc955a3f8a03539088fa7569395434e29d90e8) * GPMSG_BEING_ABILITY_DIRECTION (mana/manaserv@54389afd7ba9fecf0761333185145e968e2453ae) * GPMSG_QUESTLOG_STATUS (mana/manaserv@66a98a3a0df795761328d62ef2ad07f81e383f9e) Removed: * PGMSG_ATTACK * GPMSG_BEING_ATTACK (mana/manaserv@f31277b327df701361391b1d4b8bd6f89f4e3109) * GPMSG_PLAYER_EXP_CHANGE * GPMSG_LEVELUP * GPMSG_LEVEL_PROGRESS (mana/manaserv@44ee071d7ece5a2023f79307f36e8a244c9e7b3a) Changed: * GPMSG_ABILITY_STATUS (mana/manaserv@ba573fcc38580a01985172b9bc864c97ce855af3) * GPMSG_BEING_LOOKS_CHANGE (mana/manaserv@8ddda85d923a528c7497a628d2fe10fc40b80a1f) * APMSG_CHAR_INFO (mana/manaserv@4f5053f463fd8da0de1615ca6b0f212f02f3d653) * APMSG_CHAR_CREATE_RESPONSE (mana/manaserv@1263c729d85df649c7ab59726bddad7c8cd7ae81) * GPMSG_NPC_BUYSELL_RESPONSE (mana/manaserv@336ce321a9b996e56a61a5364bb32124efa84dd9) Equipment changes (mana/manaserv@f712d68495dd8e040c32da3b1c85bcb7845543ec): * Changed GPMSG_INVENTORY_FULL, GPMSG_EQUIP * Removed PGMSG_MOVE_ITEM * Added GPMSG_EQUIP_RESPONSE, GPMSG_UNEQUIP_RESPONSE, GPMSG_UNEQUIP While this change deals with some of the protocol changes, there's still many changes required in the UI regarding using of abilities (including attacking), showing of certain attributes and quest log.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/abilitieswindow.cpp2
-rw-r--r--src/gui/inventorywindow.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/abilitieswindow.cpp b/src/gui/abilitieswindow.cpp
index c6aefb32..10fed4ba 100644
--- a/src/gui/abilitieswindow.cpp
+++ b/src/gui/abilitieswindow.cpp
@@ -97,7 +97,7 @@ void AbilitiesWindow::action(const gcn::ActionEvent &event)
Being *target = local_player->getTarget();
if (target)
- Net::getAbilityHandler()->use(disp->mInfo->id, 1, target->getId());
+ Net::getAbilityHandler()->useOn(disp->mInfo->id, target->getId());
else
Net::getAbilityHandler()->use(disp->mInfo->id);
}
diff --git a/src/gui/inventorywindow.h b/src/gui/inventorywindow.h
index fec576d7..2bd6fe65 100644
--- a/src/gui/inventorywindow.h
+++ b/src/gui/inventorywindow.h
@@ -112,7 +112,7 @@ class InventoryWindow : public Window,
void slotsChanged(Inventory* inventory) override;
- bool isMainInventory() { return mInventory->isMainInventory(); }
+ bool isMainInventory() const { return mInventory->isMainInventory(); }
void event(Event::Channel channel, const Event &event) override;