Armour Dev

From LSWiki

Jump to: navigation, search

I'm going to take notes as I develop the Sentinels armour, since I'll hopefully be diving into all sorts of esoteric functions and weird principles and properties. When I'm done, I may format this into a coherent manual on armorcrafting, or I may just get bored and move on to the next project. By the way, feel free to contribute -- you can put in snippits from a log, your own insights or knowledge, or example code. Shared knowledge makes us all better.

-- Arafelis, Jun 31 2008

---

[14:49] Arafelis: Ok, hmm. I had thought armor granted resistances applied only to the limb the armor was worn on.
[14:50] Joku: heh no limbs dont have their own resistances
[14:51] Arafelis: So any armor that's supposed to only protect where it's worn is going to need mod_absorb_damage for every resistance type you want to give it?
[14:51] Joku: you are trying to make a piece of armour resist a damage type only on the limb its worn?
[14:52] Arafelis: Sensibly, yes. It's not a field_effect object.
[14:52] Chaos: armour()->set_type_absorption(([ "heat" : 20, "cold" : -10 ]))
[14:52] Chaos: absorption modifiers vs tyep
[14:52] Joku: hmm interesting didnt know we had that
[14:52] Arafelis: Will that work on the target limb?
[14:52] Chaos: they're in widespread use but people don't know they exist because resistances cause messaging and these don't
[14:53] Chaos: it modifies the absorption capacity of the armour
[14:53] Arafelis: Ahh, ok.
[14:54] Arafelis: Is the type absorption modifier a percentage or an amount?
[14:54] Chaos: amount
[14:55] Chaos: same numbers as armour absorption ("AC")
[14:55] Arafelis: Yeah. Hmm.

---

I said "Hmm" because since the absorption properties are thematically going to be inherent in the armor's material, I think I want armor size to affect the absorption process. I may scratch that as a nod to equality, or I may have to write in a function that determines the armour's thickness and generates ints for the type_absorption fields based on that.

---

[16:08] Chaos: properties are object-as-a-whole
[16:09] Arafelis: hmm. When I do query_properties on an armour piece, it returns an empty array unless I've manually
set a property to the entire object.
[16:09] Chaos: that's useless
[16:09] Arafelis: k.
[16:10] Chaos: query_property_proportion() is the only thing that tells you anything meaningful

---

Personal tools