uox3/source/cVersionClass.cpp
Xoduz 4e0608ff9f Exposed crafting entries from create DFNs to JS engine
Exposed crafting entries to JS engine, along with associated properties from the crafting DFNs:
	New JS Object types
		CreateEntries	// Global JS object containing all item entries loaded from create DFNs
		CreateEntry		// A specific create entry retrieved from global object. Example:
			var createEntry = CreateEntries[7] // Fetches item entry #7 from create DFNs
	New CreateEntry JS Properties
		id			// itemID of item to craft
		name		// name of item entry from create DFNs
		addItem 	// section header of item to craft from item DFNs
		colour		// colour of crafted item
		sound		// sound played when crafting item
		minRank		// minimum rank value used by rank system to provide variable stats to crafted items
		maxRank		// maximum rank value used by rank system to provide variable stats to crafted items
		delay		// delay in milliseconds for crafting to finish
		spell		// spell ID primarily used when inscribing magic scrolls
		resources	// list of resources needed to craft item.
			resources[n][0] // amount of resource needed
			resources[n][1] // resource colour required
			resources[n][2] // list of IDs accepted as resource material
		skills		// list of skills requirements to craft item
			skills[n][0]	// skillNumber of skill required to craft item
			skills[n][1]	// minimum skill at which player will always fail to craft item
			skills[n][2]	// maximum skill at which player will always succeed to craft item
		avgMinSkill	// average minimum skill required to smelt item
		avgMaxSkill	// average maximum skill required to smelt item
Fixed a bug with tracking menu that could cause UOX3 to crash when cancelling/closing the menu
2021-06-30 00:00:48 +08:00

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 = "4t";
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;
}