![]() |
naev 0.12.6
|
Handles pilot outfits. More...
#include "array.h"#include "difficulty.h"#include "escort.h"#include "gui.h"#include "log.h"#include "nlua.h"#include "nlua_outfit.h"#include "nlua_pilot.h"#include "nlua_pilotoutfit.h"#include "nstring.h"#include "ntracing.h"#include "outfit.h"#include "pilot.h"#include "player.h"#include "slots.h"#include "space.h"
Go to the source code of this file.
Data Structures | |
| struct | OnhitData |
| struct | CooldownData |
Macros | |
| #define | SPACEWORTHY_CHECK(cond, msg) |
Functions | |
| static void | pilot_calcStatsSlot (Pilot *pilot, PilotOutfitSlot *slot) |
| Computes the stats for a pilot's slot. | |
| static const char * | outfitkeytostr (OutfitKey key) |
| void | pilot_lockUpdateSlot (Pilot *p, PilotOutfitSlot *o, Pilot *t, Target *wt, double *a, double dt) |
| Updates the lockons on the pilot's launchers. | |
| void | pilot_lockClear (Pilot *p) |
| Clears pilot's missile lockon timers. | |
| int | pilot_getMount (const Pilot *p, const PilotOutfitSlot *w, vec2 *v) |
| Gets the mount position of a pilot. | |
| int | pilot_dock (Pilot *p, Pilot *target) |
| Docks the pilot on its target pilot. | |
| int | pilot_hasDeployed (const Pilot *p) |
| Checks to see if the pilot has deployed ships. | |
| int | pilot_addOutfitRaw (Pilot *pilot, const Outfit *outfit, PilotOutfitSlot *s) |
| Adds an outfit to the pilot, ignoring CPU or other limits. | |
| int | pilot_addOutfitTest (Pilot *pilot, const Outfit *outfit, const PilotOutfitSlot *s, int warn) |
| Tests to see if an outfit can be added. | |
| int | pilot_addOutfit (Pilot *pilot, const Outfit *outfit, PilotOutfitSlot *s) |
| Adds an outfit to the pilot. | |
| int | pilot_addOutfitIntrinsicRaw (Pilot *pilot, const Outfit *outfit) |
| Adds an outfit as an intrinsic slot. | |
| int | pilot_addOutfitIntrinsic (Pilot *pilot, const Outfit *outfit) |
| Adds an outfit as an intrinsic slot. | |
| int | pilot_rmOutfitIntrinsic (Pilot *pilot, const Outfit *outfit) |
| Removes an outfit from an intrinsic slot. | |
| int | pilot_hasIntrinsic (const Pilot *pilot, const Outfit *outfit) |
| Gets how many copies of an intrinsic a pilot has. | |
| int | pilot_rmOutfitRaw (Pilot *pilot, PilotOutfitSlot *s) |
| Removes an outfit from the pilot without doing any checks. | |
| int | pilot_rmOutfit (Pilot *pilot, PilotOutfitSlot *s) |
| Removes an outfit from the pilot. | |
| int | pilot_slotsCheckSafety (const Pilot *p) |
| Pilot slot safety check - makes sure stats are safe. | |
| int | pilot_slotsCheckRequired (const Pilot *p) |
| Pilot required (core) slot filled check - makes sure they are filled. | |
| int | pilot_isSpaceworthy (const Pilot *p) |
| Pilot safety check - makes sure stats are safe. | |
| int | pilot_reportSpaceworthy (const Pilot *p, char *buf, int bufSize) |
| Pilot safety report - makes sure stats are safe. | |
| int | pilot_hasOutfitLimit (const Pilot *p, const char *limit) |
| Checks to see if a pilot has an outfit with a specific outfit type. | |
| const char * | pilot_canEquip (const Pilot *p, const PilotOutfitSlot *s, const Outfit *o) |
| Checks to see if can equip/remove an outfit from a slot. | |
| int | pilot_addAmmo (Pilot *pilot, PilotOutfitSlot *s, int quantity) |
| Adds some ammo to the pilot stock. | |
| int | pilot_rmAmmo (Pilot *pilot, PilotOutfitSlot *s, int quantity) |
| Removes some ammo from the pilot stock. | |
| int | pilot_countAmmo (const Pilot *pilot) |
| Gets the number of ammo units on the ship. | |
| int | pilot_maxAmmo (const Pilot *pilot) |
| The maximum amount of ammo the pilot's current ship can hold. | |
| int | pilot_maxAmmoO (const Pilot *p, const Outfit *o) |
| Gets the maximum available ammo for a pilot for a specific outfit. | |
| void | pilot_fillAmmo (Pilot *pilot) |
| Fills pilot's ammo completely. | |
| double | pilot_outfitRange (const Pilot *p, const Outfit *o) |
| void | pilot_calcStats (Pilot *pilot) |
| Recalculates the pilot's stats based on his outfits. | |
| void | pilot_healLanded (Pilot *pilot) |
| Cures the pilot as if he was landed. | |
| PilotOutfitSlot * | pilot_getSlotByName (Pilot *pilot, const char *name) |
| Gets the outfit slot by name. | |
| double | pilot_massFactor (const Pilot *pilot) |
| Gets the factor at which speed gets worse. | |
| void | pilot_updateMass (Pilot *pilot) |
| Updates the pilot stats after mass change. | |
| int | pilot_slotIsToggleable (const PilotOutfitSlot *o) |
| Checks to see if a slot has an active outfit that can be toggleable. | |
| static void | pilot_outfitLRun (Pilot *p, void(*const func)(const Pilot *p, PilotOutfitSlot *po, const void *data), const void *data) |
| Wrapper that does all the work for us. | |
| static void | outfitLRunWarning (const Pilot *p, const Outfit *o, const char *name, const char *error) |
| static int | pilot_outfitLmem (PilotOutfitSlot *po, nlua_env env) |
| Sets up the outfit memory for a slot. | |
| static void | pilot_outfitLunmem (nlua_env env, int oldmem) |
| Cleans up the outfit memory for a slot. | |
| static const char * | pilot_outfitLDescExtra (const Pilot *p, const Outfit *o) |
| const char * | pilot_outfitDescription (const Pilot *p, const Outfit *o) |
| Gets the description of an outfit for a given pilot. | |
| const char * | pilot_outfitSummary (const Pilot *p, const Outfit *o, int withname) |
| Gets the summary of an outfit for a give pilot. | |
| double | pilot_outfitSpeed (const Pilot *p, const Outfit *o) |
| Gets the speed of an outfit given a pilot. | |
| void | pilot_outfitLInitAll (Pilot *pilot) |
| Runs the pilot's Lua outfits init script. | |
| int | pilot_outfitLAdd (const Pilot *pilot, PilotOutfitSlot *po) |
| Outfit is added to a ship. | |
| int | pilot_outfitLRemove (const Pilot *pilot, PilotOutfitSlot *po) |
| Outfit is removed froma ship. | |
| int | pilot_outfitLInit (const Pilot *pilot, PilotOutfitSlot *po) |
| Runs the pilot's Lua outfits init script for an outfit. | |
| static void | outfitLUpdate (const Pilot *pilot, PilotOutfitSlot *po, const void *data) |
| void | pilot_outfitLUpdate (Pilot *pilot, double dt) |
| Runs the pilot's Lua outfits update script. | |
| static void | outfitLOutofenergy (const Pilot *pilot, PilotOutfitSlot *po, const void *data) |
| void | pilot_outfitLOutfofenergy (Pilot *pilot) |
| Handles when the pilot runs out of energy. | |
| static void | outfitLOnhit (const Pilot *pilot, PilotOutfitSlot *po, const void *data) |
| void | pilot_outfitLOnhit (Pilot *pilot, double armour, double shield, unsigned int attacker) |
| Runs the pilot's Lua outfits onhit script. | |
| int | pilot_outfitLOntoggle (const Pilot *pilot, PilotOutfitSlot *po, int on, int natural) |
| Handle the manual toggle of an outfit. | |
| int | pilot_outfitLOnshoot (const Pilot *pilot, PilotOutfitSlot *po) |
| Handle the manual shoot of an outfit. | |
| static void | outfitLCooldown (const Pilot *pilot, PilotOutfitSlot *po, const void *data) |
| void | pilot_outfitLCooldown (Pilot *pilot, int done, int success, double timer) |
| Handle cooldown hooks for outfits. | |
| static void | outfitLOnshootany (const Pilot *pilot, PilotOutfitSlot *po, const void *data) |
| void | pilot_outfitLOnshootany (Pilot *pilot) |
| Runs the pilot's Lua outfits onshootany script. | |
| static void | outfitLOnstealth (const Pilot *pilot, PilotOutfitSlot *po, const void *data) |
| int | pilot_outfitLOnstealth (Pilot *pilot) |
| Runs the pilot's Lua outfits onhit script. | |
| static void | outfitLOnscan (const Pilot *pilot, PilotOutfitSlot *po, const void *data) |
| void | pilot_outfitLOnscan (Pilot *pilot) |
| Runs Lua outfits when pilot scanned their target. | |
| static void | outfitLOnscanned (const Pilot *pilot, PilotOutfitSlot *po, const void *data) |
| void | pilot_outfitLOnscanned (Pilot *pilot, const Pilot *scanner) |
| Runs Lua outfits when pilot was scanned by scanner. | |
| static void | outfitLOnland (const Pilot *pilot, PilotOutfitSlot *po, const void *data) |
| void | pilot_outfitLOnland (Pilot *pilot) |
| Runs Lua outfits when pilot lands on a spob. | |
| static void | outfitLOntakeoff (const Pilot *pilot, PilotOutfitSlot *po, const void *data) |
| void | pilot_outfitLOntakeoff (Pilot *pilot) |
| Runs Lua outfits when pilot takes off from a spob. | |
| static void | outfitLOnjumpin (const Pilot *pilot, PilotOutfitSlot *po, const void *data) |
| void | pilot_outfitLOnjumpin (Pilot *pilot) |
| Runs Lua outfits when pilot jumps into a system. | |
| static void | outfitLOnboard (const Pilot *pilot, PilotOutfitSlot *po, const void *data) |
| void | pilot_outfitLOnboard (Pilot *pilot, const Pilot *target) |
| Runs Lua outfits when pilot boards a target. | |
| static void | outfitLOnkeydoubletap (const Pilot *pilot, PilotOutfitSlot *po, const void *data) |
| void | pilot_outfitLOnkeydoubletap (Pilot *pilot, OutfitKey key) |
| static void | outfitLOnkeyrelease (const Pilot *pilot, PilotOutfitSlot *po, const void *data) |
| void | pilot_outfitLOnkeyrelease (Pilot *pilot, OutfitKey key) |
| void | pilot_outfitLCleanup (Pilot *pilot) |
| Handle cleanup hooks for outfits. | |
Variables | |
| static int | stealth_break = 0 |
Handles pilot outfits.
Definition in file pilot_outfit.c.
| #define SPACEWORTHY_CHECK | ( | cond, | |
| msg ) |
|
static |
Definition at line 2153 of file pilot_outfit.c.
|
static |
Definition at line 1819 of file pilot_outfit.c.
|
static |
Definition at line 2116 of file pilot_outfit.c.
|
static |
Definition at line 1685 of file pilot_outfit.c.
|
static |
Definition at line 2082 of file pilot_outfit.c.
|
static |
Definition at line 2166 of file pilot_outfit.c.
|
static |
Definition at line 2208 of file pilot_outfit.c.
|
static |
Definition at line 2015 of file pilot_outfit.c.
|
static |
Definition at line 1943 of file pilot_outfit.c.
|
static |
Definition at line 1978 of file pilot_outfit.c.
|
static |
Definition at line 1871 of file pilot_outfit.c.
|
static |
Definition at line 1905 of file pilot_outfit.c.
|
static |
Definition at line 2048 of file pilot_outfit.c.
|
static |
Definition at line 1645 of file pilot_outfit.c.
|
static |
Definition at line 1317 of file pilot_outfit.c.
|
static |
Definition at line 1601 of file pilot_outfit.c.
| int pilot_addAmmo | ( | Pilot * | pilot, |
| PilotOutfitSlot * | s, | ||
| int | quantity ) |
Adds some ammo to the pilot stock.
| pilot | Pilot to add ammo to. |
| s | Slot to add ammo to. |
| quantity | Amount to add. |
Definition at line 746 of file pilot_outfit.c.
| int pilot_addOutfit | ( | Pilot * | pilot, |
| const Outfit * | outfit, | ||
| PilotOutfitSlot * | s ) |
Adds an outfit as an intrinsic slot.
Definition at line 423 of file pilot_outfit.c.
Adds an outfit as an intrinsic slot.
Definition at line 403 of file pilot_outfit.c.
| int pilot_addOutfitRaw | ( | Pilot * | pilot, |
| const Outfit * | outfit, | ||
| PilotOutfitSlot * | s ) |
Adds an outfit to the pilot, ignoring CPU or other limits.
Definition at line 283 of file pilot_outfit.c.
| int pilot_addOutfitTest | ( | Pilot * | pilot, |
| const Outfit * | outfit, | ||
| const PilotOutfitSlot * | s, | ||
| int | warn ) |
Tests to see if an outfit can be added.
| pilot | Pilot to add outfit to. |
| outfit | Outfit to add. |
| s | Slot adding outfit to. |
| warn | Whether or not should generate a warning. |
Definition at line 349 of file pilot_outfit.c.
| void pilot_calcStats | ( | Pilot * | pilot | ) |
Recalculates the pilot's stats based on his outfits.
| pilot | Pilot to recalculate his stats. |
Definition at line 1019 of file pilot_outfit.c.
|
static |
Computes the stats for a pilot's slot.
Definition at line 951 of file pilot_outfit.c.
| const char * pilot_canEquip | ( | const Pilot * | p, |
| const PilotOutfitSlot * | s, | ||
| const Outfit * | o ) |
Checks to see if can equip/remove an outfit from a slot.
| p | Pilot to check if can equip. |
| s | Slot being checked to see if it can equip/remove an outfit. |
| o | Outfit to check (NULL if being removed). |
Definition at line 715 of file pilot_outfit.c.
| int pilot_countAmmo | ( | const Pilot * | pilot | ) |
Gets the number of ammo units on the ship.
| pilot | Pilot to count the ammo on @return The integer count of ammo units on pilot |
Definition at line 808 of file pilot_outfit.c.
Docks the pilot on its target pilot.
Definition at line 199 of file pilot_outfit.c.
| void pilot_fillAmmo | ( | Pilot * | pilot | ) |
Fills pilot's ammo completely.
| pilot | Pilot to add ammo to. |
Definition at line 873 of file pilot_outfit.c.
| int pilot_getMount | ( | const Pilot * | p, |
| const PilotOutfitSlot * | w, | ||
| vec2 * | v ) |
Gets the mount position of a pilot.
Position is relative to the pilot.
| p | Pilot to get mount position of. | |
| w | Slot of the mount. | |
| [out] | v | Position of the mount. |
Definition at line 167 of file pilot_outfit.c.
| PilotOutfitSlot * pilot_getSlotByName | ( | Pilot * | pilot, |
| const char * | name ) |
Gets the outfit slot by name.
Definition at line 1212 of file pilot_outfit.c.
| int pilot_hasDeployed | ( | const Pilot * | p | ) |
Checks to see if the pilot has deployed ships.
| p | Pilot to see if has deployed ships. |
Definition at line 261 of file pilot_outfit.c.
Gets how many copies of an intrinsic a pilot has.
Definition at line 468 of file pilot_outfit.c.
| int pilot_hasOutfitLimit | ( | const Pilot * | p, |
| const char * | limit ) |
Checks to see if a pilot has an outfit with a specific outfit type.
Definition at line 688 of file pilot_outfit.c.
| void pilot_healLanded | ( | Pilot * | pilot | ) |
Cures the pilot as if he was landed.
Definition at line 1188 of file pilot_outfit.c.
| int pilot_isSpaceworthy | ( | const Pilot * | p | ) |
Pilot safety check - makes sure stats are safe.
| p | Pilot to check. |
Definition at line 598 of file pilot_outfit.c.
| void pilot_lockClear | ( | Pilot * | p | ) |
Clears pilot's missile lockon timers.
| p | Pilot to clear missile lockon timers. |
Definition at line 140 of file pilot_outfit.c.
| void pilot_lockUpdateSlot | ( | Pilot * | p, |
| PilotOutfitSlot * | o, | ||
| Pilot * | t, | ||
| Target * | wt, | ||
| double * | a, | ||
| double | dt ) |
Updates the lockons on the pilot's launchers.
| p | Pilot being updated. |
| o | Slot being updated. |
| t | Pilot that is currently the target of p (or NULL if not applicable). |
| wt | Pilot's target. |
| a | Angle to update if necessary. Should be initialized to -1 before the loop. |
| dt | Current delta tick. |
Definition at line 50 of file pilot_outfit.c.
| double pilot_massFactor | ( | const Pilot * | pilot | ) |
Gets the factor at which speed gets worse.
Definition at line 1226 of file pilot_outfit.c.
| int pilot_maxAmmo | ( | const Pilot * | pilot | ) |
The maximum amount of ammo the pilot's current ship can hold.
| pilot | Pilot to get the count from @return An integer, the max amount of ammo that can be held. |
Definition at line 832 of file pilot_outfit.c.
Gets the maximum available ammo for a pilot for a specific outfit.
Definition at line 854 of file pilot_outfit.c.
Gets the description of an outfit for a given pilot.
Note: the returned string can get overwritten by subsequent calls.
| p | Pilot to get the outfit description of (or NULL for no pilot). |
| o | Outfit to get description of. |
Definition at line 1394 of file pilot_outfit.c.
| int pilot_outfitLAdd | ( | const Pilot * | pilot, |
| PilotOutfitSlot * | po ) |
Outfit is added to a ship.
Definition at line 1501 of file pilot_outfit.c.
| void pilot_outfitLCleanup | ( | Pilot * | pilot | ) |
Handle cleanup hooks for outfits.
| pilot | Pilot being handled. |
Definition at line 2244 of file pilot_outfit.c.
| void pilot_outfitLCooldown | ( | Pilot * | pilot, |
| int | done, | ||
| int | success, | ||
| double | timer ) |
Handle cooldown hooks for outfits.
| pilot | Pilot being handled. |
| done | Whether or not cooldown is starting or done. |
| success | Whether or not it completed successfully. |
| timer | How much time is necessary to cooldown. Only used if done is false. |
Definition at line 1864 of file pilot_outfit.c.
Definition at line 1354 of file pilot_outfit.c.
| int pilot_outfitLInit | ( | const Pilot * | pilot, |
| PilotOutfitSlot * | po ) |
Runs the pilot's Lua outfits init script for an outfit.
Definition at line 1565 of file pilot_outfit.c.
| void pilot_outfitLInitAll | ( | Pilot * | pilot | ) |
Runs the pilot's Lua outfits init script.
| pilot | Pilot to run Lua outfits for. |
Definition at line 1483 of file pilot_outfit.c.
|
static |
Sets up the outfit memory for a slot.
Definition at line 1327 of file pilot_outfit.c.
Runs Lua outfits when pilot boards a target.
Definition at line 2148 of file pilot_outfit.c.
| void pilot_outfitLOnhit | ( | Pilot * | pilot, |
| double | armour, | ||
| double | shield, | ||
| unsigned int | attacker ) |
Runs the pilot's Lua outfits onhit script.
| pilot | Pilot to run Lua outfits for. |
| armour | Armour amage taken by pilot. |
| shield | Shield amage taken by pilot. |
| attacker | The attacker that hit the pilot. |
Definition at line 1729 of file pilot_outfit.c.
| void pilot_outfitLOnjumpin | ( | Pilot * | pilot | ) |
Runs Lua outfits when pilot jumps into a system.
| pilot | Pilot being handled. |
Definition at line 2111 of file pilot_outfit.c.
| void pilot_outfitLOnkeydoubletap | ( | Pilot * | pilot, |
| OutfitKey | key ) |
Definition at line 2198 of file pilot_outfit.c.
| void pilot_outfitLOnkeyrelease | ( | Pilot * | pilot, |
| OutfitKey | key ) |
Definition at line 2234 of file pilot_outfit.c.
| void pilot_outfitLOnland | ( | Pilot * | pilot | ) |
Runs Lua outfits when pilot lands on a spob.
| pilot | Pilot being handled. |
Definition at line 2043 of file pilot_outfit.c.
| void pilot_outfitLOnscan | ( | Pilot * | pilot | ) |
Runs Lua outfits when pilot scanned their target.
| pilot | Pilot being handled. |
Definition at line 1973 of file pilot_outfit.c.
Runs Lua outfits when pilot was scanned by scanner.
Definition at line 2010 of file pilot_outfit.c.
| int pilot_outfitLOnshoot | ( | const Pilot * | pilot, |
| PilotOutfitSlot * | po ) |
Handle the manual shoot of an outfit.
Definition at line 1785 of file pilot_outfit.c.
| void pilot_outfitLOnshootany | ( | Pilot * | pilot | ) |
Runs the pilot's Lua outfits onshootany script.
| pilot | Pilot to run Lua outfits for. |
Definition at line 1900 of file pilot_outfit.c.
| int pilot_outfitLOnstealth | ( | Pilot * | pilot | ) |
Runs the pilot's Lua outfits onhit script.
| pilot | Pilot to run Lua outfits for. |
Definition at line 1937 of file pilot_outfit.c.
| void pilot_outfitLOntakeoff | ( | Pilot * | pilot | ) |
Runs Lua outfits when pilot takes off from a spob.
| pilot | Pilot being handled. |
Definition at line 2077 of file pilot_outfit.c.
| int pilot_outfitLOntoggle | ( | const Pilot * | pilot, |
| PilotOutfitSlot * | po, | ||
| int | on, | ||
| int | natural ) |
Handle the manual toggle of an outfit.
| pilot | Pilot to toggle outfit of. |
| po | Outfit to be toggling. |
| on | Whether to toggle on or off. |
| natural | Whether it's a result of the pilot input, or something automatic (such as turning off outfits when landing or hyperspace). |
Definition at line 1747 of file pilot_outfit.c.
| void pilot_outfitLOutfofenergy | ( | Pilot * | pilot | ) |
Handles when the pilot runs out of energy.
| pilot | Pilot that ran out of energy. |
Definition at line 1675 of file pilot_outfit.c.
| int pilot_outfitLRemove | ( | const Pilot * | pilot, |
| PilotOutfitSlot * | po ) |
Outfit is removed froma ship.
Definition at line 1531 of file pilot_outfit.c.
|
static |
Wrapper that does all the work for us.
Definition at line 1291 of file pilot_outfit.c.
|
static |
Cleans up the outfit memory for a slot.
Definition at line 1347 of file pilot_outfit.c.
| void pilot_outfitLUpdate | ( | Pilot * | pilot, |
| double | dt ) |
Runs the pilot's Lua outfits update script.
| pilot | Pilot to run Lua outfits for. |
| dt | Delta-tick from last time it was run. |
Definition at line 1635 of file pilot_outfit.c.
Definition at line 896 of file pilot_outfit.c.
Gets the speed of an outfit given a pilot.
Definition at line 1439 of file pilot_outfit.c.
Gets the summary of an outfit for a give pilot.
Note: the returned string can get overwritten by subsequent calls.
| p | Pilot to get the outfit summary of (or NULL for no pilot). |
| o | Outfit to get summary of. |
| withname | Whether or not to show the name too. |
Definition at line 1415 of file pilot_outfit.c.
| int pilot_reportSpaceworthy | ( | const Pilot * | p, |
| char * | buf, | ||
| int | bufSize ) |
Pilot safety report - makes sure stats are safe.
| p | Pilot to check. |
| buf | Buffer to fill. |
| bufSize | Size of the buffer. |
Definition at line 611 of file pilot_outfit.c.
| int pilot_rmAmmo | ( | Pilot * | pilot, |
| PilotOutfitSlot * | s, | ||
| int | quantity ) |
Removes some ammo from the pilot stock.
| pilot | Pilot to remove ammo from. |
| s | Slot to remove ammo from. |
| quantity | Amount to remove. |
Definition at line 779 of file pilot_outfit.c.
| int pilot_rmOutfit | ( | Pilot * | pilot, |
| PilotOutfitSlot * | s ) |
Removes an outfit from the pilot.
| pilot | Pilot to remove the outfit from. |
| s | Slot to remove. |
Definition at line 544 of file pilot_outfit.c.
Removes an outfit from an intrinsic slot.
Definition at line 448 of file pilot_outfit.c.
| int pilot_rmOutfitRaw | ( | Pilot * | pilot, |
| PilotOutfitSlot * | s ) |
Removes an outfit from the pilot without doing any checks.
| pilot | Pilot to remove the outfit from. |
| s | Slot to remove. |
Definition at line 489 of file pilot_outfit.c.
| int pilot_slotIsToggleable | ( | const PilotOutfitSlot * | o | ) |
Checks to see if a slot has an active outfit that can be toggleable.
| o | Outfit slot to check. |
Definition at line 1283 of file pilot_outfit.c.
| int pilot_slotsCheckRequired | ( | const Pilot * | p | ) |
Pilot required (core) slot filled check - makes sure they are filled.
| p | Pilot to check. |
Definition at line 584 of file pilot_outfit.c.
| int pilot_slotsCheckSafety | ( | const Pilot * | p | ) |
Pilot slot safety check - makes sure stats are safe.
| p | Pilot to check. |
Definition at line 568 of file pilot_outfit.c.
| void pilot_updateMass | ( | Pilot * | pilot | ) |
Updates the pilot stats after mass change.
| pilot | Pilot to update his mass. |
Definition at line 1243 of file pilot_outfit.c.
|
static |
Whether or not to break stealth.
Definition at line 30 of file pilot_outfit.c.