mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
Small command fixes
fix "You learn [command]." message not printing the name of the command and enable message. Make database save the short version of command id in hotbar table
This commit is contained in:
parent
ec85cfd590
commit
32330d557c
3 changed files with 15 additions and 17 deletions
|
@ -33,7 +33,7 @@ namespace FFXIVClassic_Map_Server
|
|||
private Dictionary<ulong, Party> currentPlayerParties = new Dictionary<ulong, Party>(); //GroupId, Party object
|
||||
private Dictionary<uint, StatusEffect> statusEffectList = new Dictionary<uint, StatusEffect>();
|
||||
private Dictionary<ushort, BattleCommand> battleCommandList = new Dictionary<ushort, BattleCommand>();
|
||||
private Dictionary<Tuple<byte, short>, List<uint>> battleCommandIdByLevel = new Dictionary<Tuple<byte, short>, List<uint>>();//Holds battle command ids keyed by class id and level (in that order)
|
||||
private Dictionary<Tuple<byte, short>, List<ushort>> battleCommandIdByLevel = new Dictionary<Tuple<byte, short>, List<ushort>>();//Holds battle command ids keyed by class id and level (in that order)
|
||||
private Dictionary<ushort, BattleTrait> battleTraitList = new Dictionary<ushort, BattleTrait>();
|
||||
private Dictionary<byte, List<ushort>> battleTraitIdsForClass = new Dictionary<byte, List<ushort>>();
|
||||
private Dictionary<uint, ModifierList> battleNpcGenusMods = new Dictionary<uint, ModifierList>();
|
||||
|
@ -1967,10 +1967,10 @@ namespace FFXIVClassic_Map_Server
|
|||
return battleCommandList.TryGetValue((ushort)id, out battleCommand) ? battleCommand.Clone() : null;
|
||||
}
|
||||
|
||||
public List<uint> GetBattleCommandIdByLevel(byte classId, short level)
|
||||
public List<ushort> GetBattleCommandIdByLevel(byte classId, short level)
|
||||
{
|
||||
List<uint> ids;
|
||||
return battleCommandIdByLevel.TryGetValue(Tuple.Create(classId, level), out ids) ? ids : new List<uint>();
|
||||
List<ushort> ids;
|
||||
return battleCommandIdByLevel.TryGetValue(Tuple.Create(classId, level), out ids) ? ids : new List<ushort>();
|
||||
}
|
||||
|
||||
public BattleTrait GetBattleTrait(ushort id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue