package Ġworld . greg s . void ps . world . interact . entity . player . com bat . me lee . weapon Ċ Ċ import Ġworld . greg s . void ps . engine . entity . character . Character Ċ import Ġworld . greg s . void ps . engine . entity . character . player . Player Ċ import Ġworld . greg s . void ps . engine . event . Priority Ċ import Ġworld . greg s . void ps . engine . event . on Ċ import Ġworld . greg s . void ps . world . interact . entity . com bat . Hit Damage Modifier Ċ import Ġkotlin . math . floor Ċ import Ġkotlin . random . Random Ċ Ċ fun Ġis Shade ( target : ĠCharacter ?): ĠBoolean Ġ= Ġtarget Ġ!= Ġnull Ċ Ċ on < Hit Damage Modifier >({ Ġtype Ġ== Ġ" me lee " Ġ&& Ġweapon ?. id Ġ== Ġ" gad der hammer " Ġ&& Ġis Shade ( target ) Ġ}, ĠPriority . LOW ) Ġ{ Ġ_: ĠPlayer Ġ-> ĊĠĠĠ Ġdamage Ġ= Ġfloor ( damage Ġ* Ġif Ġ( Random . next Double () Ġ< Ġ 0 . 0 5 ) Ġ 2 . 0 Ġelse Ġ 1 . 2 5 ) Ċ }