MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Map_Bloom_ExplodeSpice

Function Map_Bloom_ExplodeSpice

src/map.c:669–680  ·  view source on GitHub ↗

* Perform a bloom explosion, filling the area with spice. * @param packed Center position. * @param houseID %House causing the explosion. */

Source from the content-addressed store, hash-verified

667 * @param houseID %House causing the explosion.
668 */
669void Map_Bloom_ExplodeSpice(uint16 packed, uint8 houseID)
670{
671 if (g_validateStrictIfZero == 0) {
672 Unit_Remove(Unit_Get_ByPackedTile(packed));
673 g_map[packed].groundTileID = g_mapTileID[packed] & 0x1FF;
674 Map_MakeExplosion(EXPLOSION_SPICE_BLOOM_TREMOR, Tile_UnpackTile(packed), 0, 0);
675 }
676
677 if (houseID == g_playerHouseID) Sound_Output_Feedback(36);
678
679 Map_FillCircleWithSpice(packed, 5);
680}
681
682/**
683 * Fill a circular area with spice.

Callers 4

Scenario_Load_Map_FieldFunction · 0.85
Unit_MoveFunction · 0.85

Calls 6

Unit_RemoveFunction · 0.85
Unit_Get_ByPackedTileFunction · 0.85
Map_MakeExplosionFunction · 0.85
Tile_UnpackTileFunction · 0.85
Sound_Output_FeedbackFunction · 0.85
Map_FillCircleWithSpiceFunction · 0.85

Tested by

no test coverage detected