bomb is now plantable
This commit is contained in:
parent
e2540d8417
commit
2c7903e95d
3 changed files with 10 additions and 11 deletions
|
|
@ -271,15 +271,15 @@ func stop_interact() -> void:
|
|||
var id = multiplayer.get_remote_sender_id()
|
||||
player_stopped_interacting.emit(id)
|
||||
|
||||
func is_on_site() -> bool:
|
||||
func is_on_site(id: int) -> bool:
|
||||
for plant in plants:
|
||||
if plant.is_player_on_site(multiplayer.get_unique_id()):
|
||||
if plant.is_player_on_site(id):
|
||||
return true
|
||||
return false
|
||||
|
||||
func get_site() -> PlantSite:
|
||||
func get_site(id: int) -> PlantSite:
|
||||
for plant in plants:
|
||||
if plant.is_player_on_site(multiplayer.get_unique_id()):
|
||||
if plant.is_player_on_site(id):
|
||||
return plant
|
||||
return null
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue