.refshell
How much shell the bot you are looking at has: the shell stops venom and body shots.
Facts
- Address
- 687
- Name
.refshell- Kind
- Sense: the engine writes it for the DNA to read
- Group
- What it sees (ref*)
- Written by
- The engine, in the actions phase of every cycle, with the shell (
.shell) of the bot your focus eye sees. Also on colliding with a bot. You read it in the next cycle. - Cleared
- The engine, every cycle, when the senses are cleared.
- Range
- 0 to 32000.
- Mutations
- picked as a read (
*)
.refshell is the shell of the bot your focus eye sees: what that bot reads in its .shell and makes with .mkshell. It goes from 0 to 32000.
The shell doesn't stop energy shots, but it does stop venom shots (.shoot at −3), which are worth very little against it, and body shots (−6). So .refshell is useful for choosing the weapon: if the other is armored, better energy than venom. The details for each type are in Defenses.
If you see nothing, or what you see is a shape, it is 0.
' without a shell, venom; with a shell, energy
cond
*.eye5 0 >
*.refeye *.myeye !=
*.refshell 0 =
start
-3 .shoot store
stop
cond
*.eye5 0 >
*.refeye *.myeye !=
*.refshell 0 >
start
-1 .shoot store
stop