UNPKG

@jeremyckahn/farmhand

Version:
12 lines (10 loc) 302 B
import { getDefaultCowName } from './getDefaultCowName.js' export const getCowDisplayName = ( cow: farmhand.cow, playerId: string, allowCustomPeerCowNames: boolean ): string => { return cow.originalOwnerId !== playerId && !allowCustomPeerCowNames ? getDefaultCowName(cow) : cow.name }