25 lines
291 B
Plaintext
25 lines
291 B
Plaintext
scn EBxOnDrink
|
|
|
|
ref rDrink
|
|
ref rBottle
|
|
|
|
begin function { rDrink }
|
|
|
|
if this != playerRef
|
|
return
|
|
endif
|
|
|
|
let rBottle := call EBxGetBottleByDrink rDrink
|
|
|
|
if IsFormValid rBottle == 0
|
|
return
|
|
endif
|
|
|
|
AddItem rBottle 1 1
|
|
|
|
if MenuMode
|
|
RefreshItemsList
|
|
endif
|
|
|
|
end
|