| 1100 | } |
| 1101 | |
| 1102 | staticfn void |
| 1103 | eye_of_newt_buzz(void) |
| 1104 | { |
| 1105 | /* MRKR: "eye of newt" may give small magical energy boost */ |
| 1106 | if (rn2(3) || 3 * u.uen <= 2 * u.uenmax) { |
| 1107 | int old_uen = u.uen; |
| 1108 | |
| 1109 | u.uen += rnd(3); |
| 1110 | if (u.uen > u.uenmax) { |
| 1111 | if (!rn2(3)) { |
| 1112 | u.uenmax++; |
| 1113 | if (u.uenmax > u.uenpeak) |
| 1114 | u.uenpeak = u.uenmax; |
| 1115 | } |
| 1116 | u.uen = u.uenmax; |
| 1117 | } |
| 1118 | if (old_uen != u.uen) { |
| 1119 | You_feel("a mild buzz."); |
| 1120 | disp.botl = TRUE; |
| 1121 | } |
| 1122 | } |
| 1123 | } |
| 1124 | |
| 1125 | DISABLE_WARNING_FORMAT_NONLITERAL |
| 1126 |