[ create a new paste ] login | about

Link: http://codepad.org/rSGtFQ9b    [ raw code | fork ]

Plain Text, pasted on May 28:
Luck Feats:
sdata(19, 0) = limit(sdata(19, 0) + trait(tid) * 5, sdata(19, 0) > 0, 9999)
luck = limit(luck + feat * 5, luck > 0, 9999)
max luck from feat = 3 * 5 = 15 (also seems to imply that max luck is 9999)


Tohit calculation:
if ( rnd(sqrt(limit(sdata(19, cc), 1, 2000) + 1) + 1) > rnd(300) )
if ( rnd(sqrt(limit(luck, 1, 2000) + 1) + 1) > rnd(300) )
if it rolls, the hit happens, so it influences hit chance too


Item generation:
if ( sdata(19, 0) > rnd(5000) ) {
	if ( fixlv < 5 ) {
		fixlv++
	}
}
if ( luck > rnd(5000) )
if it rolls, increases item 'tier', can go up to godly


Blackjack:
if ( rnd(sdata(19, 0)) > 40 )
if ( rnd(luck) > 40 )
if it rolls, gives you the "bad feeling about this card" message


Gods:
if ( sdata(19, r1) > 0 ) {
	sdata(19, r1) += limit(cdata(62, r1) / 100, 1, 75 + sdata(181, 0) / 10)
}
luck += limit(Piety / 100, 1, 75 + MaxPiety / 10)
Ehekatl increases luck if luck > 0, min = 1, max = 75 + MaxPiety / 10


Random events:
if ( rnd(sdata(19, 0) + 1) > id(1) )
if ( rnd(luck + 1) > EventDifficulty )
if it rolls, triggers the "Avoiding Misfortune" event


Handmade gifts event:
if ( sdata(19, 0) + cdata(17, tc) * 2 > rnd(10000) )
if ( luck + PetImpress * 2 > rnd(10000) )
if it rolls, item crafted is godly instead of miracle


Rich man event:
p = limit(rnd((cdata(30, 0) + 1) / 10 + 1), 100, 99999) + 20 * sdata(19, 0)
p = limit(rnd((Gold + 1) / 10 + 1), 100, 99999) + 20 * luck
influences how much gold you get from the event, min = 100, max = 99999


Curse resist:
p = 75 + sdata(19, tc)
p = 75 + luck
influences dice roll for resisting curses


Sinaha:
hukou = 100 - sdata(19, 0)
hukou = 100 - luck
used as an in-game means of seeing how much luck you have
She will also say different things depending on your luck:
luck <= 1: lang("ニャハハ!可哀想なくらいツイてないやつだニャ。", "Meowhaha! You're quite an unfortunately unlucky one meow.")
luck > 1 & < 50: lang("ツイてないやつだニャ。アタシ的には面白いけどニャ。", "You're an unlucky one meow. It's quite fun for me though meow.")
luck >= 50 & < 100: lang("...まぁ、ふっつうなのニャ。", "...Well, that's about average meow.")
luck >= 100 & < 200: lang("ずいぶんとツイてるみたいニャ。気に入らないニャア...", "You're pretty lucky meow. Bothersome meow.")
luck >= 200: lang("気に入らないニャア...すっごく、気に入らないのニャア...", "Bothersome meow... Very, bothersome meow....")


Create a new paste based on this one


Comments: