mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Edited the description of inc_npc_level in scripting docs
Cosmetic edits: removed trailing spaces in some source files.
This commit is contained in:
@@ -943,7 +943,7 @@
|
||||
- name: inc_npc_level
|
||||
detail: void inc_npc_level(int party_member_pid)
|
||||
opcode: 0x81a5
|
||||
doc: Takes a party member PID or an NPC name (deprecated, for compatibility with sfall 4.1.5/3.8.15 or earlier) as an argument. The NPC must be in your party. This function ignores player level requirements and the minimum 3 player level delay between NPC level gains. It also ignores the random element, regardless of sfall's `NPCAutoLevel` or `PartyMemberNonRandomLevelUp` setting.
|
||||
doc: Takes a party member PID or an NPC name (deprecated, for compatibility with sfall 4.1.5/3.8.15 or earlier) as an argument. The NPC must be in your party. This function ignores the player's minimum level and the required number of level-ups between NPC level gains. It also ignores the random element, regardless of sfall's `NPCAutoLevel` or `PartyMemberNonRandomLevelUp` setting.
|
||||
- name: get_npc_level
|
||||
detail: int get_npc_level(string npc)
|
||||
opcode: 0x8241
|
||||
|
||||
@@ -119,7 +119,7 @@ FUNCTION REFERENCE
|
||||
-----
|
||||
#### `void inc_npc_level(int pid/string name)`
|
||||
- Takes a party member PID or an NPC name (deprecated, for compatibility with sfall 4.1.5/3.8.15 or earlier) as an argument. The NPC must be in your party.
|
||||
- This function ignores player level requirements and the minimum 3 player level delay between NPC level gains. It also ignores the random element, regardless of sfall's **NPCAutoLevel** or **PartyMemberNonRandomLevelUp** setting.
|
||||
- This function ignores the player's minimum level and the required number of level-ups between NPC level gains. It also ignores the random element, regardless of sfall's **NPCAutoLevel** or **PartyMemberNonRandomLevelUp** setting.
|
||||
|
||||
-----
|
||||
#### `int get_npc_level(int pid/string name)`
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@
|
||||
#include <functional>
|
||||
#include <vector>
|
||||
|
||||
namespace sfall
|
||||
namespace sfall
|
||||
{
|
||||
|
||||
// Simple multi-cast Delegate implementation.
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "Delegate.h"
|
||||
|
||||
namespace sfall
|
||||
namespace sfall
|
||||
{
|
||||
|
||||
extern bool useScrollWheel;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include "ModuleManager.h"
|
||||
|
||||
namespace sfall
|
||||
namespace sfall
|
||||
{
|
||||
|
||||
ModuleManager::ModuleManager() {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "Module.h"
|
||||
|
||||
namespace sfall
|
||||
namespace sfall
|
||||
{
|
||||
|
||||
class Animations : public Module {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "Module.h"
|
||||
|
||||
namespace sfall
|
||||
namespace sfall
|
||||
{
|
||||
|
||||
class BarBoxes : public Module {
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
#include "Module.h"
|
||||
|
||||
namespace sfall
|
||||
namespace sfall
|
||||
{
|
||||
|
||||
class Books : public Module {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
// Hook scripts related to critter Death
|
||||
|
||||
namespace sfall
|
||||
namespace sfall
|
||||
{
|
||||
|
||||
void InitDeathHookScripts();
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
namespace sfall
|
||||
namespace sfall
|
||||
{
|
||||
|
||||
template <typename T>
|
||||
|
||||
Reference in New Issue
Block a user