ModDota / BugTracker

Listing bugs for Dota 2 Custom Games
9 stars 1 forks source link

Allow modifying what heroes get per attribute point #16

Open darklordabc opened 7 years ago

darklordabc commented 7 years ago

Problem: Points into strength, agility and intelligence gives fixed attributes, like HP regen, armour, magic resistance, and you cannot easily change these (or at all?).

Solution: Allow modders to set custom properties for what these attributes reward

Priority: Low

SinZ163 commented 7 years ago

With the exception of #26 This is fully possible using Lua Modifiers and Lua Spells, with luaSpell:OnHeroCalculateStatsBonus() to reapply the lua modifiers with the intended stack counts.

Yahnich commented 7 years ago

it is possible, but the problem is if you work with big numbers, dropping an item can (due to the 0.03 server tick delay) mean you have 0hp for example for a server tick and you die; so preferably we'd have some kind of integrated method for this or at least some way to just turn the default valve values off

for example you have a 100 strength item and in your gamemode strength gives you 1hp per strength; dropping this item suddenly loses you 20*100 effective hp and you're dead because the health you're deducting makes your max health 0