Commit graph

134 commits

Author SHA1 Message Date
Geir Ove Alnes
3d1ea6ac00
Merge branch 'develop' into AOS-Properties-Regenation 2025-04-20 07:10:35 +08:00
Xoduz
82f473f00a Rework of passive stat regeneration
Updated code calculating passive health, stamina and mana regeneration for characters, based on new UOX.INI settings and bonuses from characters/items/races
	Added three new Character/Item/Race DFN tags to grant bonus health/stamina/mana regeneration:
		HEALTHREGENBONUS=# 	// 10 bonus points equates to 0.01 extra hp regen per second, independent of era
		STAMINAREGENBONUS=# // 10 bonus points equates to 0.05 extra stamina regen per second
		MANAREGENBONUS=# 	// 10 bonus point equates to 0.1 extra mana regen per second
		...also available as JS Properties:
			.healthRegenBonus
			.staminaRegenBonus
			.manaRegenBonus
	Updated get/set JS commands to allow getting/setting regen bonuses for health, stamina and mana
	Updated races.dfn to include default +2 health regen bonus for humans, and +2 mana regen bonus for gargoyles.
	Added new UOX.INI settings under [Skills and Stats] section:
		HEALTHREGENMODE=1 	// 0 = no passive health regen, 1 = default passive health regen
		STAMINAREGENMODE=1 	// 0 = no passive stamina regen, 1 = default passive stamina regen (LBR or below), 2 = AoS or beyond, 3 = SA and beyond
		MANAREGENMODE=1 	// 0 = no passive mana regen, 1 = default passive mana regen (LBR or below), 2 = AoS (Pub17), 3 = AoS/SE (Pub18 and beyond), 4 = ML, 5 = KR, 6 = SA and beyond
		HEALTHREGENCAP=#  	// Max cap for Health Regeneration Bonus stat per character
		STAMINAREGENCAP=# 	// Max cap for Stamina Regeneration Bonus stat per character
		MANAREGENCAP=#		// Max cap for Mana Regeneration Bonus stat per character
	Added new UOX.INI section ([default race bonuses]) with the following new settings for the 3 default playable races (only used if nothing else specified in races.dfn):
		HUMANHEALTHREGENBONUS=0 	// default health regen bonus for human race (2 from ML expansion onwards)
		HUMANSTAMINAREGENBONUS=0 	// default stamina regen bonus for human race
		HUMANMANAREGENBONUS=0 		// default mana regen bonus for human race
		ELFHEALTHREGENBONUS=0 		// default health regen bonus for elf race
		ELFSTAMINAREGENBONUS=0 		// default stamina regen bonus for elf race
		ELFMANAREGENBONUS=0 		// default mana regen bonus for elf race
		GARGOYLEHEALTHREGENBONUS=0 	// default health regen bonus for gargoyle race
		GARGOYLESTAMINAREGENBONUS=0 // default stamina regen bonus for gargoyle race
		GARGOYLEMANAREGENBONUS=0 	// default mana regen bonus for gargoyle race (2 from SA expansion onwards)
	Updated UOX3 Documentation with new feature section on Stat Regeneration with details on stat regeneration rules and recommended settings per UO era
	Added support for Medable armors (have no effect on meditation skill and/or passive regen of mana when worn) and Mage Armors (can turn non-medable armor into medable armor)
		These properties are defined per armor piece using the first and second bits of the MORE property:
			MORE=0x1 0x0 0x0 0x0 // Medable Armor
			MORE=0x0 0x1 0x0 0x0 // Mage Armor
		The following armor types have been marked as medable by default:
			leather armor, leather ninja armor, leather samurai armor, leaf armor, gargish cloth armor, gargish leather armor and all hats and masks
	Updated JS Method .Defense() to support optional fourth and fifth parameters - excludeMedableArmor (true/false) and includeShield (true/false)
	Updated CalfDef function to support including shields in the calculations, and updated mana regen code to include shields when checking for equipped armor
	Updated Meditation skill JS script to exclude medable armor from armor check, include shields, and apply different rules for active meditation depending on mana regen mode
	Updated stat window to include defensive rating of shields (based on Parrying skill) and/or elemental resistances (if enabled in ini)
	Added a new property to CRace class, which is automatically set and incremented as UOX3 loads in races from races.dfn: raceID
	Added new Getters/Setters for CRace class to retrieve ID of a specific Race object
	Updated JS property .id for Race JS Object to return new race ID instead of iterating through list of races to compare race object and return index
	Reloading DFNs now also reloads Races
2025-04-20 06:05:44 +08:00
Geir Ove Alnes
d70052ff85
Merge branch 'develop' into New-magic-DFN's 2025-03-10 04:59:47 +08:00
Geir Ove Alnes
b0d538b929
Merge branch 'develop' into Tithing 2025-03-10 04:54:07 +08:00
Dragon Slayer
34064c30c5 update tithering 2025-03-08 21:10:37 -06:00
Dragon Slayer
6b4b12b35a updated luck 2025-03-08 20:29:52 -06:00
Dragon Slayer
4e1254a00a Added New DFN reagents 2025-03-08 18:55:55 -06:00
Dragon Slayer
f0ed9eea60 Added Tithing 2025-03-08 16:34:37 -06:00
Dragon Slayer
426f816cf8 Added Luck
Added Changelog for Luck
Added Document for Luck
2025-03-08 15:43:24 -06:00
Dragon Slayer
bccb159a2c couple changes 2025-03-04 14:58:49 -06:00
Dragon Slayer
9c7217cd80 Damage Increase
Damage Increase Property increase damage by a percentage
2025-02-23 17:11:14 -06:00
Dragon Slayer
af98b8d814 Update UOXJSPropertyFuncs.cpp 2025-02-10 11:20:47 -06:00
Dragon Slayer
6b1a73d4e8 Single Skill Cap
Single Skill Cap
2025-02-10 11:17:51 -06:00
Dragon Slayer
5c03abe17c
Merge branch 'develop' into durabilitypr-replacement 2025-01-28 20:11:05 -06:00
Geir Ove Alnes
a3dd706b4e
Merge branch 'develop' into Karma-Locking 2025-01-28 17:22:29 +08:00
Geir Ove Alnes
9812074558
Merge branch 'develop' into Lower-Requirement-AOS-Propertie 2025-01-26 01:36:30 +08:00
Geir Ove Alnes
4fb3d038a0
Merge branch 'develop' into Swing-Speed-Increase 2025-01-25 23:55:45 +08:00
Geir Ove Alnes
d002b87a9b
Merge branch 'develop' into leech-aos-propties 2025-01-25 16:36:20 +08:00
Geir Ove Alnes
c3f153ff3c
Merge branch 'develop' into Hit/Defense-Chance-Bonus 2025-01-25 15:56:06 +08:00
Dragon Slayer
e32ecd1397
Merge branch 'develop' into Karma-Locking 2025-01-22 15:06:20 -06:00
Dragon Slayer
1fd3a5a0f7
Merge branch 'develop' into leech-aos-propties 2025-01-18 11:52:55 -06:00
Dragon Slayer
c5d8955c4d
Merge branch 'develop' into Swing-Speed-Increase 2025-01-18 11:51:28 -06:00
Dragon Slayer
3465ffa7d7
Merge branch 'develop' into Hit/Defense-Chance-Bonus 2025-01-18 11:02:27 -06:00
Dragon Slayer
cff7dc832c
Merge branch 'develop' into Three-New-AOS-Props 2025-01-18 10:51:11 -06:00
Dragon Slayer
8ad410fe92
Merge branch 'develop' into Lower-Requirement-AOS-Propertie 2025-01-16 23:44:12 -06:00
Dragon Slayer
022612f19d fixed pr 2025-01-16 21:30:32 -06:00
Dragon Slayer
b82b9dcc60 update 2025-01-14 22:16:11 -06:00
Dragon Slayer
cd35741ff2 Update
Updated so they work directly on chars for the DCI and HCI just like retail AOS
2025-01-14 21:44:16 -06:00
Dragon Slayer
bc3cfdbe2e Update to Speed Increase
This now works on the chars as well as items, After reading more on this and finding it out it was part of the chars not just a  new tag for items.
2025-01-14 21:24:23 -06:00
Dragon Slayer
7e7a42f40b Karma Locking
Added Karma Locking LBR Feature.
2024-12-08 14:55:52 -06:00
Dragon Slayer
da9267ac98 Added AOS Leech Properties 2024-06-18 18:28:50 -05:00
Dragon Slayer
2694dbc502 Match uox3 Style 2024-06-16 18:57:27 -05:00
Dragon Slayer
ced101feeb fixes 2024-06-16 02:33:09 -05:00
Dragon Slayer
dba9daedd5 format changes 2024-06-16 02:25:57 -05:00
Dragon Slayer
59c2ba633a small format changes 2024-06-16 02:00:40 -05:00
Dragon Slayer
3e7e8bccb3 Swing Speed Increase 2024-06-16 01:37:31 -05:00
Dragon Slayer
363ce296c4 Hit/Defense Chance Properties 2024-06-14 14:38:03 -05:00
Xoduz
b45e4bce48 Minor update
Regen function/property names updated to be more in line with existing naming conventions
Fixed an issue where health regen setting would be loaded for both health, stamina and mana when parsing uox.ini
2024-06-08 17:03:16 +08:00
Dragon Slayer
549cd3e99f updated change log 2024-05-25 23:41:47 -05:00
Dragon Slayer
2cec24c989 Three New AOS properties 2024-05-13 19:01:20 -05:00
Dragon Slayer
18b338bb79 Fixed cast 2024-05-11 20:17:11 -05:00
Dragon Slayer
0c69a3a11b Fixed cast 2024-05-11 20:15:52 -05:00
Dragon Slayer
27461c908a Added ArtifactRarity
-ARTIFACTRARITY=#
	-Artifact Rarity is an item property that is visible on some artifacts and meant to give players an idea of how rare the item is. Items with rarity 1 are supposed to be common while rarity 12 are extremely scarce.
2024-05-09 20:22:58 -05:00
Dragon Slayer
3f5efab632 Lower Requirements Propertie
Added AOS Lower Requirement propertie.
2024-04-30 23:29:39 -05:00
Dragon Slayer
6b542d512e AOS Properties Regenation 2024-04-30 13:46:57 -05:00
Dragon Slayer
902a15cfff Selling Fix
Fixed a bug where crafted items were not selling properly. Now, players can 	successfully sell their crafted gear at vendors.
2024-03-30 01:05:41 -05:00
Danny Shoun
15e5fad724 Formatting fixes. 2023-11-12 18:54:42 -07:00
Danny Shoun
5a3821c2b9 Fix indentations. 2023-11-12 18:44:14 -07:00
Danny Shoun
8f92043256 Rename bod_rewards.dfn to bod_rewards_blacksmith.dfn
Add bod_rewards_tailor.dfn
Include DFN good property in JS objects.
Add clothing_bless_deed item and associated script.
Enable clothing_bless_deed reward for tailor BODs.
2023-11-11 16:43:42 -07:00
Lloyd Dilley
bdf3e2192c
Fix compile warnings 2023-07-08 14:25:04 -04:00