Help:Boilerplate tile: Difference between revisions
m (Add references, minor) |
m (Reword, the note, fix link) |
||
Line 3: | Line 3: | ||
{| class="wikitable theme-red" style="width: 100%;" | {| class="wikitable theme-red" style="width: 100%;" | ||
|- | |- | ||
|<center><small>This boilerplate is used for giving a new page a standard look. To copy the code, copy the code | |<center><small>This boilerplate is used for giving a new page a standard look. To copy the code, enter the [[{{fullurl:Help:Boilerplate tile|action=edit}} editing mode]], copy the code between <nowiki><!--COPY CODE BETWEEN THESE COMMENTS--></nowiki>, and add it to your new page before changing to the relevant content. The result of the code are shown below. | ||
The | Anything between <nowiki><!--</nowiki> and <nowiki>--></nowiki> is a comment, and can safely be discarded, feel free to remove them when finished with the page, until then, feel free to use the {{tlx|Underconstruction}} [[PZwiki:Mboxes|mbox]]. | ||
This boilerplate is in an early format, and some sections may change as time goes on. If you wish to suggest improvements to this boilerplate, please use the [[Help talk:Boilerplate | This boilerplate is in an early format, and some sections may change as time goes on. If you wish to suggest improvements to this boilerplate, please use the [[Help talk:Boilerplate tile|discussion page]].</small></center> | ||
|} | |} | ||
<!--COPY CODE BETWEEN THESE COMMENTS--> | <!--COPY CODE BETWEEN THESE COMMENTS--> |
Revision as of 09:04, 17 April 2024
Anything between <!-- and --> is a comment, and can safely be discarded, feel free to remove them when finished with the page, until then, feel free to use the |
An introduction to the tile. Include links (example link is to Nails article) to other pages within the wiki where appropriate.
Overview
A longer overview of the tile, that may contain multiple paragraphs, but not include usage of the tile. This section is not mandatory.
Usage
This section contains how the tile can be used, including other stats that may not be in the infobox.[1]
Crafting
This section is added if the item can be crafted, including subcategories for crafting types, with links to the main articles.
Product | Ingredients | Tools | Requirements | Workstation | XP |
---|---|---|---|---|---|
Wooden Wall Lvl 1 |
One of: Wooden Wall Frame ×1 Metal Wall Frame ×1 Each of: Plank ×2 Nails ×4 |
Hammer (tag) |
Carpentry 2 | none | 2.5 Carpentry |
Wooden Wall Lvl 2 |
One of: Wooden Wall Frame ×1 Metal Wall Frame ×1 Each of: Plank ×2 Nails ×4 |
Hammer (tag) |
Carpentry 4 | none | 5 Carpentry |
Wooden Wall Lvl 3 |
One of: Wooden Wall Frame ×1 Metal Wall Frame ×1 Each of: Plank ×2 Nails ×4 |
Hammer (tag) |
Carpentry 7 | none | 7.5 Carpentry |
Upgrade Wooden Wall From Lvl 1 to Lvl 2 |
Wooden Wall Lvl 1 ×1 Plank ×1 Nails ×4 |
Hammer (tag) |
Carpentry 4 | none | 2.5 Carpentry |
Upgrade Wooden Wall From Lvl 1 to Lvl 3 |
Wooden Wall Lvl 1 ×1 Plank ×2 Nails ×8 |
Hammer (tag) |
Carpentry 7 | none | 5 Carpentry |
Upgrade Wooden Wall From Lvl 2 to Lvl 3 |
Wooden Wall Lvl 2 ×1 Plank ×1 Nails ×4 |
Hammer (tag) |
Carpentry 7 | none | 2.5 Carpentry |
Health
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 |
Skill level | Level 1 wall | Level 2 wall | Level 3 wall |
---|---|---|---|
2 | 560 HP | - | - |
3 | 580 HP | - | - |
4 | 600 HP | 700 HP | - |
5 | 620 HP | 720 HP | - |
6 | 640 HP | 740 HP | - |
7 | 660 HP | 760 HP | 860 HP |
8 | 680 HP | 780 HP | 880 HP |
9 | 700 HP | 800 HP | 900 HP |
10 | 720 HP | 820 HP | 920 HP |
Trivia
- Any interesting facts about the tile should be bullet-pointed
*
in this section.
Gallery
Code
multistagebuild CreateWoodenWall_1
{
PreviousStage:WoodenWallFrame;MetalWallFrame,
Name:WoodenWallLvl1,
TimeNeeded:250,
BonusHealth:400,
SkillRequired:Woodwork=2,
ItemsRequired:Base.Plank=2;Base.Nails=4,
ItemsToKeep:Base.Hammer,
Sprite:walls_exterior_wooden_01_44,
NorthSprite:walls_exterior_wooden_01_45,
CraftingSound:Hammering,
ID:Create Wooden Wall Lvl 1,
XP:Woodwork=10,
}
multistagebuild UpgradeWoodenWall_1To2
{
PreviousStage:WoodenWallLvl1,
Name:WoodenWallLvl2,
TimeNeeded:200,
BonusHealth:100,
BonusSkill:FALSE,
SkillRequired:Woodwork=4,
ItemsRequired:Base.Plank=1;Base.Nails=4,
ItemsToKeep:Base.Hammer,
Sprite:walls_exterior_wooden_01_40,
NorthSprite:walls_exterior_wooden_01_41,
CraftingSound:Hammering,
ID:Upgrade to Wooden Wall Lvl 2,
XP:Woodwork=10,
}
multistagebuild CreateWoodenWall_2
{
PreviousStage:WoodenWallFrame;MetalWallFrame,
Name:WoodenWallLvl2,
TimeNeeded:250,
BonusHealth:500,
SkillRequired:Woodwork=4,
ItemsRequired:Base.Plank=2;Base.Nails=4,
ItemsToKeep:Base.Hammer,
Sprite:walls_exterior_wooden_01_40,
NorthSprite:walls_exterior_wooden_01_41,
CraftingSound:Hammering,
ID:Create Wooden Wall Lvl 2,
XP:Woodwork=20,
}
multistagebuild UpgradeWoodenWall_1To3
{
PreviousStage:WoodenWallLvl1,
Name:WoodenWallLvl3,
TimeNeeded:220,
BonusHealth:200,
BonusSkill:FALSE,
SkillRequired:Woodwork=7,
ItemsRequired:Base.Plank=2;Base.Nails=8,
ItemsToKeep:Base.Hammer,
Sprite:walls_exterior_wooden_01_24,
NorthSprite:walls_exterior_wooden_01_25,
CanBePlastered:true,
WallType:wall,
CraftingSound:Hammering,
ID:Upgrade to Wooden Wall Lvl 3,
XP:Woodwork=20,
}
multistagebuild UpgradeWoodenWall_2To3
{
PreviousStage:WoodenWallLvl2,
Name:WoodenWallLvl3,
TimeNeeded:200,
BonusHealth:100,
BonusSkill:FALSE,
SkillRequired:Woodwork=7,
ItemsRequired:Base.Plank=1;Base.Nails=4,
ItemsToKeep:Base.Hammer,
Sprite:walls_exterior_wooden_01_24,
NorthSprite:walls_exterior_wooden_01_25,
CanBePlastered:true,
WallType:wall,
CraftingSound:Hammering,
ID:Upgrade to Wooden Wall Lvl 32,
XP:Woodwork=10,
}
multistagebuild CreateWoodenWall_3
{
PreviousStage:WoodenWallFrame;MetalWallFrame,
Name:WoodenWallLvl3,
TimeNeeded:250,
BonusHealth:600,
SkillRequired:Woodwork=7,
ItemsRequired:Base.Plank=2;Base.Nails=4,
ItemsToKeep:Base.Hammer,
Sprite:walls_exterior_wooden_01_24,
NorthSprite:walls_exterior_wooden_01_25,
CanBePlastered:true,
WallType:wall,
CraftingSound:Hammering,
ID:Create Wooden Wall Lvl 3,
XP:Woodwork=30,
}
public void doStage(IsoGameCharacter isoGameCharacter, IsoThumpable isoThumpable, boolean bl) {
int n = isoThumpable.getHealth();
int n2 = isoThumpable.getMaxHealth();
String string = this.sprite;
if (isoThumpable.north) {
string = this.northSprite;
}
IsoThumpable isoThumpable2 = new IsoThumpable(IsoWorld.instance.getCell(), isoThumpable.square, string, isoThumpable.north, isoThumpable.getTable());
isoThumpable2.setCanBePlastered(this.canBePlastered);
if ("doorframe".equals(this.wallType)) {
isoThumpable2.setIsDoorFrame(true);
isoThumpable2.setCanPassThrough(true);
isoThumpable2.setIsThumpable(isoThumpable.isThumpable());
}
int n3 = this.bonusHealth;
switch (SandboxOptions.instance.ConstructionBonusPoints.getValue()) {
// Code edited out by Ed because we are using default values
}
Iterator<String> iterator = this.perks.keySet().iterator();
int n4 = 20;
switch (SandboxOptions.instance.ConstructionBonusPoints.getValue()) {
// Code edited out by Ed because we are using default values
}
int n5 = 0;
if (this.bonusHealthSkill) {
while (iterator.hasNext()) {
String string2 = iterator.next();
n5 += isoGameCharacter.getPerkLevel(PerkFactory.Perks.FromString(string2)) * n4;
}
}
isoThumpable2.setMaxHealth(n2 + n3 + n5);
isoThumpable2.setHealth(n + n3 + n5);