Darwinbots Forum

Code center => Bugs and fixes => Solved Bugs => Topic started by: NotLegalTender on June 08, 2013, 03:18:10 PM

Title: Better code for corpse feeders
Post by: NotLegalTender on June 08, 2013, 03:18:10 PM
We need codes to allow a bot to determine if something is alive or dead, which would allow for better corpse feeders.

.corpse can tell if it is alive or dead.

.corpsefind, combined with eyes, can allow a bot to find corpses to feed off.
Title: Re: Better code for corpse feeders
Post by: Botsareus on June 08, 2013, 03:39:42 PM
I don't think you can eat corpses. I think all you can do is chill next to one and get its energy.
Title: Re: Better code for corpse feeders
Post by: Botsareus on June 08, 2013, 03:52:14 PM
Never mind, apparently you can -6 corpses.

Numsgil, is there any way to figure out if robot is a corpse in the current system?

If no, my personal opinion is to disable -6 on corpses. But it will be up to you guys.
Title: Re: Better code for corpse feeders
Post by: Botsareus on June 08, 2013, 06:34:31 PM
Quote
Numsgil, is there any way to figure out if robot is a corpse in the current system?

I guess the answer is no.

How about I modify '.reftype' to return a -1 when it sees a corpse?
Title: Re: Better code for corpse feeders
Post by: Numsgil on June 08, 2013, 06:48:19 PM
Gotta give me more than three hours to respond...

Corpses have 0 nrg.  They're meant to be feedable by -6 shots, the idea being that you can create a scavenger bot that just feeds off the corpses of others.
Title: Re: Better code for corpse feeders
Post by: Botsareus on June 08, 2013, 07:21:38 PM
You know what, and going to add .reftype -1 for corpses with 2.45.04.



The three hour rule, I like that. That gives me three hours to edit my posts (as you know I do that often)  :)
Title: Re: Better code for corpse feeders
Post by: Botsareus on June 22, 2013, 10:29:23 AM
(Numsgil, I really did think that the 3 hour rule was a good idea, i.e. I was not being Sarcastic)



problem resolved

You can use  *.refnrg to figure out if a robot is a corpse



I think corpse find is over kill.