@hbwhipshot fixed template stacking

@hbwhipshot fixed template stacking
This commit is contained in:
Jaysyn904 2023-03-09 14:06:10 -05:00
parent 6d37f86b11
commit f59214cb64
2 changed files with 61 additions and 7 deletions

View File

@ -0,0 +1,54 @@
2DA V2.0
Name Label Cost Value
0 **** Random 0 0
1 1045 1 1 1
2 1046 2 2 2
3 1047 3 3 3
4 1048 4 4 4
5 1049 5 5 5
6 1050 6 6 6
7 1051 7 7 7
8 1052 8 8 8
9 1053 9 9 9
10 1054 10 10 10
11 1954 11 11 11
12 1992 12 12 12
13 2113 13 13 13
14 2119 14 14 14
15 2139 15 15 15
16 2163 16 16 16
17 2164 17 17 17
18 2187 18 18 18
19 2191 19 19 19
20 2192 20 20 20
21 2332 21 21 21
22 2333 22 22 22
23 2334 23 23 23
24 2335 24 24 24
25 2336 25 25 25
26 2337 26 26 26
27 2338 27 27 27
28 2339 28 28 28
29 2340 29 29 29
30 2341 30 30 30
31 2342 31 31 31
32 2343 32 32 32
33 2344 33 33 33
34 2345 34 34 34
35 2346 35 35 35
36 2347 36 36 36
37 2348 37 37 37
38 2349 38 38 38
39 2350 39 39 39
40 2351 40 40 40
41 2352 41 41 41
42 2353 42 42 42
43 2354 43 43 43
44 2355 44 44 44
45 2356 45 45 45
46 2357 46 46 46
47 2358 47 47 47
48 2359 48 48 48
49 2360 49 49 49
50 2361 50 50 50

View File

@ -373,12 +373,12 @@ void SetCompositeBonus(object oItem, string sBonus, int iVal, int iType, int iSu
iCurVal = TotalAndRemoveProperty(oItem, iType, iSubType);
iCurVal -= GetPersistantLocalInt(GetItemPossessor(oItem), "LetoAbility_"+IntToString(iSubType));
if (DEBUG) DoDebug("Ability Decrease #1: oItem "+GetName(oItem)+" sBonus "+sBonus+" iChange "+IntToString(iChange)+" iCurVal "+IntToString(iCurVal)+" iSubType "+IntToString(iSubType));
/*if ((iCurVal + iChange) > 12)
if ((iCurVal + iChange) > 50)
{
iVal -= iCurVal + iChange - 12;
iCurVal = 12;
iVal -= iCurVal + iChange - 50;
iCurVal = 50;
iChange = 0;
}*/
}
if(iCurVal+iChange > 0)
{
AddItemProperty(DURATION_TYPE_PERMANENT, ItemPropertyAbilityBonus(iSubType, iCurVal + iChange), oItem);
@ -764,10 +764,10 @@ void SetCompositeBonusT(object oItem, string sBonus, int iVal, int iType, int iS
{
case ITEM_PROPERTY_ABILITY_BONUS:
iCurVal = TotalAndRemovePropertyT(oItem, iType, iSubType);
if ((iCurVal + iChange) > 12)
if ((iCurVal + iChange) > 50)
{
iVal -= iCurVal + iChange - 12;
iCurVal = 12;
iVal -= iCurVal + iChange - 50;
iCurVal = 50;
iChange = 0;
}
AddItemProperty(DURATION_TYPE_TEMPORARY, ItemPropertyAbilityBonus(iSubType, iCurVal + iChange), oItem,9999.0);