getTenGod method
PWBTenGodModel
getTenGod(
- PWBSkyTrunkModel aBranch
Implementation
PWBTenGodModel getTenGod(PWBSkyTrunkModel aBranch) {
int x = skyTrunkDay().elementValue()!.value.index;
int y = aBranch.elementValue()!.value.index;
int b = skyTrunkDay().biValue() * aBranch.biValue();
int index = (4 * x + y) % 5 + 1;
index *= b;
return PWBTenGodModel(index);
}