@@ -389,10 +389,6 @@ let actionData = {
389389 addResourceTo ( data . actions [ actionObj . generatorTarget ] , actionObj . resourceToAdd ) ;
390390 }
391391
392- //Adds exp right after this function
393- actionObj . expToAddBase = actionObj . resourceToAdd ;
394- actionObj . expToAdd = actionObj . expToAddBase * actionObj . expToAddMult * calcUpgradeMultToExp ( actionObj ) ;
395-
396392 views . scheduleUpdate ( 'makeMoneyResourceSent' , intToString ( actionObj . resourceToAdd , 2 ) , "textContent" )
397393 views . scheduleUpdate ( 'makeMoneyResourceTaken' , intToString ( resourceTaken , 2 ) , "textContent" )
398394 } ,
@@ -409,6 +405,8 @@ let actionData = {
409405 let resourceTaken = actionObj . resource * actionObj . tierMult ( ) ;
410406 actionObj . resourceToAdd = dataObj . actionPowerFunction ( resourceTaken ) *
411407 actionObj . actionPower * actionObj . upgradeMult ;
408+ actionObj . expToAddBase = actionObj . resourceToAdd ;
409+ actionObj . expToAdd = actionObj . expToAddBase * actionObj . expToAddMult * calcUpgradeMultToExp ( actionObj ) ;
412410 } ,
413411 updateUpgradeMult :function ( ) {
414412 let upgradeMult = 1 ;
@@ -740,10 +738,6 @@ let actionData = {
740738 addResourceTo ( data . actions [ actionObj . generatorTarget ] , actionObj . resourceToAdd ) ;
741739 }
742740
743- //Adds exp right after this function
744- actionObj . expToAddBase = actionObj . resourceToAdd ;
745- actionObj . expToAdd = actionObj . expToAddBase * actionObj . expToAddMult * calcUpgradeMultToExp ( actionObj ) ;
746-
747741 views . scheduleUpdate ( 'socializeResourceSent' , intToString ( actionObj . resourceToAdd , 2 ) , "textContent" )
748742 views . scheduleUpdate ( 'socializeResourceTaken' , intToString ( resourceTaken , 2 ) , "textContent" )
749743 } ,
@@ -756,6 +750,8 @@ let actionData = {
756750 actionObj . actionPowerMult * ( actionObj . efficiency / 100 ) ;
757751 let resourceTaken = actionObj . resource * actionObj . tierMult ( ) ;
758752 actionObj . resourceToAdd = dataObj . actionPowerFunction ( resourceTaken ) * actionObj . actionPower * actionObj . upgradeMult ;
753+ actionObj . expToAddBase = actionObj . resourceToAdd ;
754+ actionObj . expToAdd = actionObj . expToAddBase * actionObj . expToAddMult * calcUpgradeMultToExp ( actionObj ) ;
759755 } ,
760756 onUnlock : function ( ) {
761757 // unveilAction('neighborlyTies');
@@ -2240,10 +2236,6 @@ actionData = {
22402236 addResourceTo ( data . actions [ "resolve" ] , actionObj . resourceToAdd ) ;
22412237 addResourceTo ( data . actions [ "worry" ] , actionObj . resourceToAdd ) ;
22422238
2243- //Adds exp right after this function
2244- actionObj . expToAddBase = actionObj . resourceToAdd ;
2245- actionObj . expToAdd = actionObj . expToAddBase * actionObj . expToAddMult * calcUpgradeMultToExp ( actionObj ) ;
2246-
22472239
22482240 views . scheduleUpdate ( 'worryResourceSent' , intToString ( actionObj . resourceToAdd , 2 ) , "textContent" )
22492241 views . scheduleUpdate ( 'worryResourceTaken' , intToString ( actionObj . resourceToAdd , 2 ) , "textContent" )
@@ -2259,6 +2251,8 @@ actionData = {
22592251 actionObj . resourceToAdd = dataObj . actionPowerFunction ( resourceTaken ) *
22602252 actionObj . actionPower * actionObj . upgradeMult ;
22612253 data . actions . resolve . resourceIncrease = actionObj . resourceToAdd * actionObj . progressGain / actionObj . progressMax ;
2254+ actionObj . expToAddBase = actionObj . resourceToAdd ;
2255+ actionObj . expToAdd = actionObj . expToAddBase * actionObj . expToAddMult * calcUpgradeMultToExp ( actionObj ) ;
22622256 } ,
22632257 actionPowerFunction : function ( resource ) {
22642258 return resource / 10 ;
@@ -3079,10 +3073,6 @@ actionData = {
30793073
30803074 addResourceTo ( data . actions [ actionObj . generatorTarget ] , actionObj . resourceToAdd ) ;
30813075
3082- //Adds exp right after this function
3083- actionObj . expToAddBase = actionObj . resourceToAdd ;
3084- actionObj . expToAdd = actionObj . expToAddBase * actionObj . expToAddMult * calcUpgradeMultToExp ( actionObj ) ;
3085-
30863076 views . scheduleUpdate ( 'echoKindleResourceSent' , intToString ( actionObj . resourceToAdd , 2 ) , "textContent" )
30873077 } ,
30883078 updateMults : function ( ) {
@@ -3094,6 +3084,8 @@ actionData = {
30943084 actionObj . actionPowerMult * ( actionObj . efficiency / 100 ) ;
30953085 actionObj . resourceToAdd = dataObj . actionPowerFunction ( actionObj . resource ) * actionObj . tierMult ( ) *
30963086 actionObj . actionPower * actionObj . upgradeMult ;
3087+ actionObj . expToAddBase = actionObj . resourceToAdd ;
3088+ actionObj . expToAdd = actionObj . expToAddBase * actionObj . expToAddMult * calcUpgradeMultToExp ( actionObj ) ;
30973089 } ,
30983090 actionPowerFunction : function ( resource ) {
30993091 if ( resource < 1 ) {
@@ -3141,9 +3133,6 @@ actionData = {
31413133
31423134 addResourceTo ( data . actions [ dataObj . generatorTarget ] , actionObj . resourceToAdd ) ;
31433135
3144- actionObj . expToAddBase = actionObj . resourceToAdd ;
3145- actionObj . expToAdd = actionObj . expToAddBase * actionObj . expToAddMult * calcUpgradeMultToExp ( actionObj ) ;
3146-
31473136 views . scheduleUpdate ( 'poolManaResourceTaken' , intToString ( sparkManaObj . resource , 2 ) , "textContent" )
31483137 views . scheduleUpdate ( 'poolManaResourceSent' , intToString ( actionObj . resourceToAdd , 2 ) , "textContent" )
31493138
@@ -3156,6 +3145,8 @@ actionData = {
31563145 actionObj . actionPower = actionObj . actionPowerBase *
31573146 actionObj . actionPowerMult * ( actionObj . efficiency / 100 ) ;
31583147 actionObj . resourceToAdd = data . actions . sparkMana . resource * actionObj . actionPower * actionObj . upgradeMult ;
3148+ actionObj . expToAddBase = actionObj . resourceToAdd ;
3149+ actionObj . expToAdd = actionObj . expToAddBase * actionObj . expToAddMult * calcUpgradeMultToExp ( actionObj ) ;
31593150 } ,
31603151 onUnlock : function ( ) {
31613152 } ,
0 commit comments