mirror of
https://github.com/UOX3DevTeam/UOX3
synced 2026-08-13 12:27:04 -04:00
Exposed a (read-only) JS property for characters to fetch their hunger rate. Uses race's hunger rate if defined, otherwise uses HUNGERRATE form uox.ini: .hungerRate // Seconds between becoming hungrier Updated 'get command to allow retrieving a character's hungerRate property Added some details to console during UOX3 startup about which IPs and Ports UOX3 is listening to Added new JS event that triggers when a player clicks on the Quest button in the paperdoll. Triggers from character script if present, or global script if not: onQuestGump( pUser ) Added new JS event that triggers when player toggles a special move from a combat book. See packet 0xBF, subCmd 0x19 in packet guides for details on the special moves, whose IDs range from 0x00 to 0x1D: onSpecialMove( pUser, abilityID ) Fixed invalid ID for items [0x0174] and [0x0175] in dfndata/items/building/walls/stone_walls.dfn Updated FileSize() function in regions.cpp to fetch file size using std::filesystem::file_size() instead of creating an input stream, opening a file and then trying to seek the last position in the file Added findNearbyObjects() function to findfuncs.cpp, to find all objects (characters and items) of CBaseObject class near a specified location Improved performance when initializing multis on startup; now checks for items near multis, instead of checking for multis near every single item! Improved performance when loading items and characters from worldfiles during startup; around 33% faster for release builds, around ~50% faster when running in debug mode through visual studio (punt) Updated createSection() in ssection.cpp to use std::string and StringUtility functions instead of UString, and added some error handling (punt) Co-Authored-By: Charles Kerr <punt1959@users.noreply.github.com>
84 lines
No EOL
2.1 KiB
C++
84 lines
No EOL
2.1 KiB
C++
//o-----------------------------------------------------------------------------------------------o
|
|
//| File - cVersionClass.cpp
|
|
//| Date - 10/17/2002
|
|
//o-----------------------------------------------------------------------------------------------o
|
|
//| Purpose - Handles version info for builds
|
|
//o-----------------------------------------------------------------------------------------------o
|
|
#include <string>
|
|
#include "cVersionClass.h"
|
|
|
|
//o-----------------------------------------------------------------------------------------------o
|
|
// product info
|
|
//o-----------------------------------------------------------------------------------------------o
|
|
const std::string VER = "0.99";
|
|
const std::string BUILD = "4h";
|
|
const std::string REALBUILD = "0";
|
|
const std::string SVER = "2.0";
|
|
const std::string CVER = "2.0";
|
|
const std::string IVER = "2.0";
|
|
const std::string PRODUCT = "Ultima Offline eXperiment 3";
|
|
const std::string NAME = "UOX3";
|
|
const std::string EMAIL = "https://www.uox3.org/";
|
|
const std::string PROGRAMMERS = "Countless! See UOX3 Hall of Fame in documentation!";
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
// Construction/Destruction
|
|
//////////////////////////////////////////////////////////////////////
|
|
CVersionClass::CVersionClass()
|
|
{
|
|
}
|
|
//o-----------------------------------------------------------------------------------------------o
|
|
CVersionClass::~CVersionClass()
|
|
{
|
|
|
|
}
|
|
|
|
std::string CVersionClass::GetVersion( void )
|
|
{
|
|
return VER;
|
|
}
|
|
|
|
std::string CVersionClass::GetBuild( void )
|
|
{
|
|
return BUILD;
|
|
}
|
|
|
|
std::string CVersionClass::GetRealBuild( void )
|
|
{
|
|
return REALBUILD;
|
|
}
|
|
|
|
std::string CVersionClass::GetScriptVersion( void )
|
|
{
|
|
return SVER;
|
|
}
|
|
|
|
std::string CVersionClass::GetCharacterVersion( void )
|
|
{
|
|
return CVER;
|
|
}
|
|
|
|
std::string CVersionClass::GetItemVersion( void )
|
|
{
|
|
return IVER;
|
|
}
|
|
|
|
std::string CVersionClass::GetProductName( void )
|
|
{
|
|
return PRODUCT;
|
|
}
|
|
|
|
std::string CVersionClass::GetName( void )
|
|
{
|
|
return NAME;
|
|
}
|
|
|
|
std::string CVersionClass::GetEmail( void )
|
|
{
|
|
return EMAIL;
|
|
}
|
|
|
|
std::string CVersionClass::GetProgrammers( void )
|
|
{
|
|
return PROGRAMMERS;
|
|
} |