09-23-2019, 11:12 AM
A2:
``` if (src.reagents && (src.reagents.get_reagent_amount("ethanol") >= 100) && prob(40))
damage += rand(3,5)
if (msgs)
msgs.show_message_self("<span style=\"color:red\">You drunkenly throw a brutal punch!</span>")
```
(You need >100 ethanol, heavy punches are 40% of the time)
``` if (src.reagents && (src.reagents.get_reagent_amount("ethanol") >= 100) && prob(40))
damage += rand(3,5)
if (msgs)
msgs.show_message_self("<span style=\"color:red\">You drunkenly throw a brutal punch!</span>")
```
(You need >100 ethanol, heavy punches are 40% of the time)