File upandaway/prefabs/shopkeeper.lua
This makes it so that you cannot kill the shopkeeper.
Functions
OnHit (inst, attacker) | This makes it so that you cannot kill the shopkeeper. |
canNegotiate (buyer, seller) | Functions for trading cows for beans. |
greetPlayer (inst) |
Functions
- OnHit (inst, attacker)
-
This makes it so that you cannot kill the shopkeeper.
Parameters
- inst:
- attacker:
- canNegotiate (buyer, seller)
-
Functions for trading cows for beans. Below, buyer refers to the buyer of cows (the shopkeeper) and seller to the one who sells them (the player).
Parameters
- buyer:
- seller:
- greetPlayer (inst)
-
Parameters
- inst: