[Reques] entity.prototype return specific prorotype

Things that we aren't going to implement
Post Reply
Kexík
Long Handed Inserter
Long Handed Inserter
Posts: 71
Joined: Mon Dec 01, 2014 12:52 pm
Contact:

[Reques] entity.prototype return specific prorotype

Post by Kexík »

Hi I would like to request feature, that entity.prototype will not return LuaEntityPrototpe in all cases, but if i have for example type storage-tank, that it will return LuaEntityPipeConnectablePrototype so we will be able access and get info from specific variables, in this example from fluid_box. Creating meta-items isnt best workaround when player can see them when selecting conditions/filter for smart devices.

User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: [Reques] entity.prototype return specific prorotype

Post by L0771 »

i want add this too
prototype.minable.hardness
prototype.minable.mining_time

It's the same issue, I wouldn't make another post for the same request :)

Rseding91
Factorio Staff
Factorio Staff
Posts: 13235
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Reques] entity.prototype return specific prorotype

Post by Rseding91 »

The entityprototype object has been significantly added to for the 0.12 version:
Added several new options to LuaEntityPrototype: mineableproperties, itemstoplacethis, collisionbox, selectionbox, order, group, subgroup, healingpertick, emissionspertick, corpses, selectableingame, weight, resistances, fastreplaceablegroup, loot, repairspeedmodifier
If you want to get ahold of me I'm almost always on Discord.

Yulgalminakf
Burner Inserter
Burner Inserter
Posts: 7
Joined: Wed Jun 10, 2015 12:27 am
Contact:

Re: [Reques] entity.prototype return specific prorotype

Post by Yulgalminakf »

Yes, this would be a perfect option. I'd love it if keys didn't have to be added in the C++ code for it to be accessible in lua. Hide only the more important variables that would break the game if changed.

Post Reply

Return to “Won't implement”