ak86 / Milk-Mod-Economy

http://www.loverslab.com/files/file/1382-milk-mod-economy/
2 stars 0 forks source link

MilkQuest.psc: suspicious code in lines 1392-1395 #5

Closed ghost closed 8 years ago

ghost commented 8 years ago

What is the purpose of lines 1392-1395 in MilkQuest.psc?

if IsMilkMaid == true
  PainCnt = StorageUtil.GetFloatValue(akActor,"MME.MilkMaid.PainCount", missing = 0)
  StorageUtil.SetFloatValue(akActor,"MME.MilkMaid.PainCount", PainCnt)
endif

I think either the GetFloatValue or the SetFloatValue is superfluous and should be deleted.

Or maybe something else is going on and this is indeed as intended. If this is the case then please add a comment to explain it.

ak86 commented 8 years ago

hm... its a leftover of merging of 2 functions year ago