Skip to content

Commit

Permalink
no deduction gen 0 exp when laying egg
Browse files Browse the repository at this point in the history
  • Loading branch information
etheremon committed Jan 28, 2018
1 parent 1162199 commit 60d6950
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EtheremonTransform.sol
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@ contract EtheremonTransform is EtheremonEnum, BasicAccessControl, SafeMath {
uint64 eggId = transformData.addEgg(obj.monsterId, obj.classId, msg.sender, block.timestamp + (hatchStartTime + getRandom(hatchMaxTime, 0, lastHatchingAddress)) * 3600);

// deduct exp
data.decreaseMonsterExp(_objId, obj.exp - levelExps[afterLevel-1]);
if (afterLevel < currentLevel)
data.decreaseMonsterExp(_objId, obj.exp - levelExps[afterLevel-1]);
EventLayEgg(msg.sender, _objId, eggId);
}

Expand Down

0 comments on commit 60d6950

Please sign in to comment.