Template:Construction hp

From PZwiki
Notebook.pngTemplate Documentation

The {{Construction hp}} template produces pre-formatted tables to display the hp of a constructable item based on the parameters given. The input is the type of wall and its frame if applicable, See Parameters for details. Calculations are done in this template for ease of maintenence.

Usage

For anything constructed with a frame, Copy the below, and replace X with the wall type, and Y with the frame type, as per parameters.
{{Construction hp|type=X|frame=Y}}

For any other constructable, copy the code below, and replace X with the type, as per parameters.
{{Construction hp|type=X}}

The Type= can also be left out completely to produce the same result.
{{Construction hp|X|Y}}

Parameters

Parameters must be in the order of type= then frame=. A lack of parameters will result in a default table of wooden wall from a wooden frame.

type=
This is the type of constructable, the following values are accepted:
  • wood
  • metal
  • log
  • doorframe
  • woodendoor
  • barricade
frame=
This is the type of frame the constructable was built on, the following values are accepted:
  • wood
  • metal

Example

A properly formatted table using both parameter names.

Calculations based on frame type wood and wall type wood
Skill level Level 1 wall Level 2 wall Level 3 wall
2 490 HP - -
3 510 HP - -
4 530 HP 630 HP -
5 550 HP 650 HP -
6 570 HP 670 HP -
7 590 HP 690 HP 790 HP
8 610 HP 710 HP 810 HP
9 630 HP 730 HP 830 HP
10 650 HP 750 HP 850 HP

The same table, without the parameter names.

Calculations based on frame type wood and wall type wood
Skill level Level 1 wall Level 2 wall Level 3 wall
2 490 HP - -
3 510 HP - -
4 530 HP 630 HP -
5 550 HP 650 HP -
6 570 HP 670 HP -
7 590 HP 690 HP 790 HP
8 610 HP 710 HP 810 HP
9 630 HP 730 HP 830 HP
10 650 HP 750 HP 850 HP

A table for a log wall, which does not use a frame, so does not use the frame parameter.

Calculations are based on log walls
Skill level HP without handy HP with handy
0 400 HP 500 HP
1 450 HP 550 HP
2 500 HP 600 HP
3 550 HP 650 HP
4 600 HP 700 HP
5 650 HP 750 HP
6 700 HP 800 HP
7 750 HP 850 HP
8 800 HP 900 HP
9 850 HP 950 HP
10 900 HP 1000 HP

A table for a doorframe, which does not use a frame, so does not use the frame parameter.

Calculations are based on door frames
Skill level HP without handy HP with handy
0 300 HP 400 HP
1 350 HP 450 HP
2 400 HP 500 HP
3 450 HP 550 HP
4 500 HP 600 HP
5 550 HP 650 HP
6 600 HP 700 HP
7 650 HP 750 HP
8 700 HP 800 HP
9 750 HP 850 HP
10 800 HP 900 HP

Metal wall specified, but no frame parameter given, defaults to wood frame.

Calculations based on frame type wood and wall type metal
Skill level Level 1 metal wall Level 2 metal wall
3 760 HP -
4 780 HP -
5 800 HP -
6 820 HP -
7 840 HP -
8 860 HP 960 HP
9 880 HP 980 HP
10 900 HP 1000 HP

Frame type specified, but no type parameter given, defaults to wooden wall.

Calculations based on frame type wood and wall type wood
Skill level Level 1 wall Level 2 wall Level 3 wall
2 490 HP - -
3 510 HP - -
4 530 HP 630 HP -
5 550 HP 650 HP -
6 570 HP 670 HP -
7 590 HP 690 HP 790 HP
8 610 HP 710 HP 810 HP
9 630 HP 730 HP 830 HP
10 650 HP 750 HP 850 HP

All parameters missing, defaults to wood wall with wood frame.

Calculations based on frame type wood and wall type wood
Skill level Level 1 wall Level 2 wall Level 3 wall
2 490 HP - -
3 510 HP - -
4 530 HP 630 HP -
5 550 HP 650 HP -
6 570 HP 670 HP -
7 590 HP 690 HP 790 HP
8 610 HP 710 HP 810 HP
9 630 HP 730 HP 830 HP
10 650 HP 750 HP 850 HP

All parameters missing, defaults to wood wall with wood frame.

Health per barricade
Skill level Wood planks Metal bars Metal sheet
0 1000 HP 3000 HP 5000 HP
1 1000 HP 3000 HP 5000 HP
2 1100 HP 3300 HP 5500 HP
3 1140 HP 3420 HP 5700 HP
4 1180 HP 3540 HP 5900 HP
5 1220 HP 3660 HP 6100 HP
6 1260 HP 3480 HP 5800 HP
7 1300 HP 3900 HP 6500 HP
8 1340 HP 4020 HP 6700 HP
9 1400 HP 4200 HP 7000 HP
10 1500 HP 4500 HP 7500 HP
Editors can experiment in this template's sandbox.