MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getLightSource

Method getLightSource

src/Ruleset/MapData.cpp:373–380  ·  view source on GitHub ↗

* Gets the amount of light the object is emitting. * @return The amount of light emitted. */

Source from the content-addressed store, hash-verified

371 * @return The amount of light emitted.
372 */
373int MapData::getLightSource() const
374{
375 // lamp posts have 1, but they should emit more light
376 if (_lightSource == 1)
377 return 15;
378 else
379 return _lightSource - 1;
380}
381
382/**
383 * Sets the amount of light the object is emitting.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected