Repair
Part of openmw.types
Usage:
local Repair = require('openmw.types').Repair
Type types
| types.Repair |
#Repair functions |
Type Repair
| Repair.baseType | |
| Repair.objectIsInstance(object) |
Whether the object is a Repair. |
| Repair.record(objectOrRecordId) |
Returns the read-only #RepairRecord of a repair tool |
| Repair.records |
A read-only list of all #RepairRecords in the world database. |
Type RepairRecord
| RepairRecord.icon |
VFS path to the icon |
| RepairRecord.id |
The record ID of the repair tool |
| RepairRecord.maxCondition |
The maximum number of uses of this repair tool |
| RepairRecord.model |
VFS path to the model |
| RepairRecord.mwscript |
MWScript on this repair tool (can be empty) |
| RepairRecord.name |
The name of the repair tool |
| RepairRecord.quality |
The quality of the repair tool |
| RepairRecord.value | |
| RepairRecord.weight |
Type types
Field(s)
- #Repair types.Repair
-
#Repair functions
Type Item
Type Repair
Extends #Item
Repair functions
Field(s)
- Repair.objectIsInstance(object)
-
Whether the object is a Repair.
Parameter
-
openmw.core#GameObject object:
Return value
#boolean:
-
- Repair.record(objectOrRecordId)
-
Returns the read-only #RepairRecord of a repair tool
Parameter
-
#any objectOrRecordId:
Return value
-
- #list<#RepairRecord> Repair.records
-
A read-only list of all #RepairRecords in the world database.
Type RepairRecord
Field(s)
- #string RepairRecord.icon
-
VFS path to the icon
- #string RepairRecord.id
-
The record ID of the repair tool
- #number RepairRecord.maxCondition
-
The maximum number of uses of this repair tool
- #string RepairRecord.model
-
VFS path to the model
- #string RepairRecord.mwscript
-
MWScript on this repair tool (can be empty)
- #string RepairRecord.name
-
The name of the repair tool
- #number RepairRecord.quality
-
The quality of the repair tool
- #number RepairRecord.value
- #number RepairRecord.weight