From a2293899b18aac380aa1825c0b88a5396012394c Mon Sep 17 00:00:00 2001 From: jesusalva Date: Thu, 1 Mar 2018 20:14:51 -0300 Subject: Change croconut break-by-str rule --- npc/items/croconut.txt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'npc/items') diff --git a/npc/items/croconut.txt b/npc/items/croconut.txt index dfa008ba2..d6a6026c1 100644 --- a/npc/items/croconut.txt +++ b/npc/items/croconut.txt @@ -30,6 +30,7 @@ L_Weapon: mes col(l("Which of your weapons do you want to use in order to cut this @@?", getitemlink(Croconut)), 9); next; + // ToDo this must be replaced menu rif(countitem(Knife) > 0, l(getitemname(Knife))), L_Weak, rif(countitem(PiouSlayer) > 0, l(getitemname(PiouSlayer))), L_Weak, @@ -43,9 +44,17 @@ L_TooWeak: mesn "Narrator"; .@q = rand(5); + if (readparam(bStr) > 30) + .@q = .@q + 1; + if (readparam(bStr) > 60) + .@q = .@q + 1; + if (readparam(bStr) > 90) + .@q = .@q + 1; + if (.@q == 0) goto L_TooWeakLost; if ( (.@q == 1) || (.@q == 2) ) goto L_TooWeakFail; - if ( (.@q == 3) || (.@q == 4) || (.@q == 5) ) goto L_Weak; + if ( (.@q >= 3) && (.@q <= 6) ) goto L_Weak; + if ( (.@q > 6) ) goto L_Good; L_TooWeakLost: mes col(l("You hit too hard with your fist, you destroyed your @@.", getitemlink(Croconut)), 9); -- cgit v1.2.3-60-g2f50