marrub
/
Lithia
Archived
1
0
Fork 0
This repository has been archived on 2023-06-17. You can view files and clone it, but cannot push or open issues/pull-requests.
Lithia/source/Main/u_lolsords.c

36 lines
654 B
C

// Copyright © 2016-2017 Graham Sanderson, all rights reserved.
#include "lith_upgrades_common.h"
#define UData UData_lolsords(upgr)
// Extern Functions ----------------------------------------------------------|
//
// Activate
//
void Upgr_lolsords_Activate(struct player *p, upgrade_t *upgr)
{
UData.origweapon = p->weaponclass;
InvGive("Lith_Sword", 1);
}
//
// Deactivate
//
void Upgr_lolsords_Deactivate(struct player *p, upgrade_t *upgr)
{
InvTake("Lith_Sword", 1);
ACS_SetWeapon(UData.origweapon);
}
//
// Update
//
script void Upgr_lolsords_Update(struct player *p, upgrade_t *upgr)
{
ACS_SetWeapon("Lith_Sword");
}
// EOF