DarwinBotsManual
Open the app EspañolES

.shell

How much shell the bot has: it stops the shots that steal body and the venom ones, and it doesn't wear off on its own.

Facts

Address
823
Name
.shell
Kind
Sense: the engine writes it for the DNA to read
Group
Defenses
Written by
The engine: when you make shell (actions phase), when a shot that wears it down hits you (the shots phase) and when you or a tie partner share shell (movement phase).
Cleared
Nobody: it shows the latest change. Writing to it changes nothing.
Range
0 to 32000
Mutations
picked as a read (*)

The shell is the defense against two attacks: the shots that steal body (-6 in .shoot) and the venom ones (-3). Every hit eats the shell first and only what is left over reaches the bot. Against venom it works less well than against body shots, and it doesn't stop energy shots (-1); for those there is .poison.

It doesn't wear off over time: what you made with .mkshell stays until shots eat it away or you take it apart. The hidden cost is the weight: every 200 of shell adds as much mass as 1000 of body, so a heavily armored bot accelerates less with the same .up.

The cell is updated when you make shell, when a shot that wears it down hits you, and when a partner shares shell with .shareshell. Writing to it changes nothing.

' if I'm being hit, reinforce the shell
cond
*.shflav 0 !=
*.shell 500 <
start
100 .mkshell store
stop

.shflav tells you what type the shot that hit you in the previous cycle was.