Skip to content
This repository has been archived by the owner on Dec 4, 2020. It is now read-only.

Commit

Permalink
Licensing: Apply AGPL to CGambitsContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
zach2good committed Nov 27, 2020
1 parent 36fc2f1 commit b2ccd95
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 3 deletions.
36 changes: 34 additions & 2 deletions src/map/ai/helpers/gambits_container.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,36 @@
#include "gambits_container.h"
/*
===========================================================================
Copyright (c) 2020 Project Topaz
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
---
ADDITIONAL RESTRICTIONS PERTAINING TO ATTRIBUTION AND MISREPRESENTATION
APPLY TO THIS SOFTWARE.
ADDITIONAL PERMISSIONS MAY APPLY TO THIS SOFTWARE.
You should have received a full copy of these additional terms included
in a license along with this program. If not, see:
<http://project-topaz.com/blob/release/LICENSE>
===========================================================================
*/

#include "gambits_container.h"

#include "../../ability.h"
#include "../../enmity_container.h"
Expand Down Expand Up @@ -558,7 +590,7 @@ bool CGambitsContainer::TryTrustSkill()
{
case G_SELECT::RANDOM:
{
chosen_skill = tpzrand::GetRandomElement(tp_skills);
chosen_skill = tpzrand::GetRandomElement(tp_skills);
break;
}
case G_SELECT::HIGHEST: // Form the best possible skillchain
Expand Down
34 changes: 33 additions & 1 deletion src/map/ai/helpers/gambits_container.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,36 @@
#ifndef _GAMBITSCONTAINER
/*
===========================================================================
Copyright (c) 2020 Project Topaz
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
---
ADDITIONAL RESTRICTIONS PERTAINING TO ATTRIBUTION AND MISREPRESENTATION
APPLY TO THIS SOFTWARE.
ADDITIONAL PERMISSIONS MAY APPLY TO THIS SOFTWARE.
You should have received a full copy of these additional terms included
in a license along with this program. If not, see:
<http://project-topaz.com/blob/release/LICENSE>
===========================================================================
*/

#ifndef _GAMBITSCONTAINER
#define _GAMBITSCONTAINER

#include "../../../common/cbasetypes.h"
Expand Down

0 comments on commit b2ccd95

Please sign in to comment.