mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-27 06:02:18 +00:00
b0f3121bec
- moved health items to their own file. - scriptified ScoreItem and MapRevealer whose entire functionality was a small TryPickup method. - fixed: bit fields in global variables were not correctly written. This should conclude the inventory cleanup. It is now possible again to find things in there.
72 lines
1.1 KiB
Text
72 lines
1.1 KiB
Text
class Armor : Inventory native
|
|
{
|
|
Default
|
|
{
|
|
Inventory.PickupSound "misc/armor_pkup";
|
|
}
|
|
}
|
|
|
|
class BasicArmor : Armor native
|
|
{
|
|
|
|
native int AbsorbCount;
|
|
native double SavePercent;
|
|
native int MaxAbsorb;
|
|
native int MaxFullAbsorb;
|
|
native int BonusCount;
|
|
native Name ArmorType;
|
|
native int ActualSaveAmount;
|
|
|
|
Default
|
|
{
|
|
+Inventory.KEEPDEPLETED
|
|
}
|
|
}
|
|
|
|
class BasicArmorBonus : Armor native
|
|
{
|
|
native double SavePercent; // The default, for when you don't already have armor
|
|
native int MaxSaveAmount;
|
|
native int MaxAbsorb;
|
|
native int MaxFullAbsorb;
|
|
native int SaveAmount;
|
|
native int BonusCount;
|
|
native int BonusMax;
|
|
|
|
Default
|
|
{
|
|
+Inventory.AUTOACTIVATE
|
|
+Inventory.ALWAYSPICKUP
|
|
Inventory.MaxAmount 0;
|
|
Armor.SavePercent 33.335;
|
|
}
|
|
}
|
|
|
|
class BasicArmorPickup : Armor native
|
|
{
|
|
|
|
native double SavePercent;
|
|
native int MaxAbsorb;
|
|
native int MaxFullAbsorb;
|
|
native int SaveAmount;
|
|
|
|
Default
|
|
{
|
|
+Inventory.AUTOACTIVATE;
|
|
Inventory.MaxAmount 0;
|
|
}
|
|
}
|
|
|
|
class HexenArmor : Armor native
|
|
{
|
|
|
|
native double Slots[5];
|
|
native double SlotsIncrement[4];
|
|
|
|
Default
|
|
{
|
|
+Inventory.KEEPDEPLETED
|
|
+Inventory.UNDROPPABLE
|
|
}
|
|
}
|
|
|