Materials (detailed)

From IvanWiki
Revision as of 02:09, 8 September 2014 by 4zb4 (talk | contribs) (saving just in case again)
Jump to navigation Jump to search

Coding: This article contains code which is for experienced users only, and may reveal game secrets

//work in progress
This page is designed to detail the mechanics behind each material's properties as defined in materials.dat. For more general usage, please see the list of materials.

Core

Core values must be defined in every individual material's entry - they do not default to a set value.

StrengthValue - increases weapon damage, item durability, and resistance to physical damage for armor.
ConsumeType - determines which characters are able to eat the material.
Density - influences the weight of anything made of the material (multiplied by volume)
Color - the color of the material in RGB values.
NameStem - the material's name (e.g. "granite")
AttachedGod - the god the material is attached to. Gods are more pleased by offered items that are made of their materials.

Basic

Basic values are important and commonly utilized, but can default to pre-set values or do not need to be set at all.

Alpha - How transparent the material is, between 0-255. 255 is solid, 0 is invisible. PriceModifier - Artificially raises an item's sell value by this value multiplied by weight divided by 20000.
Flexibility - Most importantly determines the damage of whips and belts, but also reduces damage to armor and determines the language used around the item made of the material (e.g. "plate mail" is a low flex armor, "armor" is high)
IntelligenceRequirement - how much INT you need in order to harden a material to this material. For changing directly into the material, add 5 to this value.
HardenedMaterial - what the material hardens into when a scroll of harden material or successful prayer to Loricatus is used.
NaturalForm - what a terrain object or golem of the material reverts into when destroyed (e.g. stone, stick, lump)